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

Author: Yonggang Luo <[email protected]>
Date:   Wed Aug 24 03:46:57 2022 +0800

mesa: direct use of mtx_recursive is not c11 conformance

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

---

 src/mesa/main/texturebindless.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/texturebindless.c b/src/mesa/main/texturebindless.c
index 38ff0af9d0b..927d4427734 100644
--- a/src/mesa/main/texturebindless.c
+++ b/src/mesa/main/texturebindless.c
@@ -423,7 +423,7 @@ _mesa_init_shared_handles(struct gl_shared_state *shared)
 {
    shared->TextureHandles = _mesa_hash_table_u64_create(NULL);
    shared->ImageHandles = _mesa_hash_table_u64_create(NULL);
-   mtx_init(&shared->HandlesMutex, mtx_recursive);
+   mtx_init(&shared->HandlesMutex, mtx_plain | mtx_recursive);
 }
 
 void

Reply via email to