llvmpipe: add a mutex around debug resource tracking
authorDave Airlie <airlied@redhat.com>
Mon, 8 Feb 2021 06:10:26 +0000 (16:10 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 10 Feb 2021 22:34:05 +0000 (08:34 +1000)
commit2937f69cc038a6305b353fa4926aa8c8f0ba44f6
treefeffd6ba40b115162fd2d2bb107681b70b87eb5f
parentacaf07c24b348100ca6e011c5ca4531175ab0593
llvmpipe: add a mutex around debug resource tracking

The debug resource tracking triggers an asan warning, add a mutex
around it to avoid multi-thread failures with vulkan CTS test:

dEQP-VK.api.object_management.multithreaded_per_thread_device.buffer_uniform_small

Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8912>
src/gallium/drivers/llvmpipe/lp_texture.c