From e1139a3fc3cf0060369d9140382a2be5a5ab6860 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Tue, 6 Sep 2022 23:50:43 +0800 Subject: [PATCH] radeonsi: direct use of mtx_recursive is not c11 conformance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yonggang Luo Reviewed-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Marek Olšák Part-of: --- src/gallium/drivers/radeonsi/si_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 53e25cb18ea..6a1c0698b37 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -1216,7 +1216,7 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws, 1 << util_logbase2(sscreen->force_aniso)); } - (void)mtx_init(&sscreen->aux_context_lock, mtx_recursive); + (void)mtx_init(&sscreen->aux_context_lock, mtx_plain | mtx_recursive); (void)simple_mtx_init(&sscreen->async_compute_context_lock, mtx_plain); (void)simple_mtx_init(&sscreen->gpu_load_mutex, mtx_plain); (void)simple_mtx_init(&sscreen->gds_mutex, mtx_plain);