svga: direct use of mtx_recursive is not c11 conformance

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18445>
This commit is contained in:
Yonggang Luo 2022-09-06 23:51:41 +08:00 committed by Marge Bot
parent e1139a3fc3
commit 0894762cb8

View file

@ -1318,7 +1318,7 @@ svga_screen_create(struct svga_winsys_screen *sws)
}
(void) mtx_init(&svgascreen->tex_mutex, mtx_plain);
(void) mtx_init(&svgascreen->swc_mutex, mtx_recursive);
(void) mtx_init(&svgascreen->swc_mutex, mtx_plain | mtx_recursive);
svga_screen_cache_init(svgascreen);