mesa/src/broadcom/simulator
Juan A. Suarez Romero 985a5c8f1a broadcom/simulator: protect simulator BO rallocs with mutexes
Move ralloc allocations and frees for BOs into the critical sections
protected with mutexes.

This fixes several double-free and use-after-free crashes that happens
sometimes when using the simulator to run Vulkan CTS tests, specially
when these tests involve multithreading, like
`dEQP-VK.api.object_management.multithreaded_per_thread_resources.device_memory_small`.

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27070>
2024-01-15 12:52:34 +00:00
..
meson.build broadcom/compiler: remove include of gallium headers from meson.build 2023-12-12 10:03:11 +00:00
v3d_simulator.c broadcom/simulator: protect simulator BO rallocs with mutexes 2024-01-15 12:52:34 +00:00
v3d_simulator.h broadcom: only support v42 and v71 2023-11-02 11:59:08 +01:00
v3d_simulator_wrapper.cpp v3d/simulator: get rid of has_gca wrapper 2021-06-07 21:52:20 +00:00
v3d_simulator_wrapper.h v3d/simulator: get rid of has_gca wrapper 2021-06-07 21:52:20 +00:00
v3dx_simulator.c v3dv: enable CPU jobs in the simulator 2023-12-14 16:43:14 +00:00
v3dx_simulator.h broadcom/simulator: add per-hw version calls 2023-10-13 22:37:44 +00:00