radeonsi: direct use of mtx_recursive is not c11 conformance
authorYonggang Luo <luoyonggang@gmail.com>
Tue, 6 Sep 2022 15:50:43 +0000 (23:50 +0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 14 Sep 2022 02:46:51 +0000 (02:46 +0000)
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18445>

src/gallium/drivers/radeonsi/si_pipe.c

index 53e25cb..6a1c069 100644 (file)
@@ -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);