Module: Mesa
Branch: main
Commit: e1139a3fc3cf0060369d9140382a2be5a5ab6860
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1139a3fc3cf0060369d9140382a2be5a5ab6860

Author: Yonggang Luo <[email protected]>
Date:   Tue Sep  6 23:50:43 2022 +0800

radeonsi: direct use of mtx_recursive is not c11 conformance

Signed-off-by: Yonggang Luo <[email protected]>
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18445>

---

 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);

Reply via email to