mesa/src/broadcom
Juan A. Suarez Romero 5a9e40f028 v3dv: disable threadeded submissions under drm-shim
Threaded submit relies on DRM syncobj wait ioctls blocking until the
GPU signals completion. Under drm-shim there is no real GPU, so
SYNCOBJ_WAIT returns immediately, creating a race between the submit
thread and vkQueueWaitIdle that leads to use-after-free crashes.

Detect if we are running under drm-shim by checking the DRM version
description, skip enabling threaded submit in that case.

Assisted-by: Cursor Agent (Opus 4.6)
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41779>
2026-05-27 10:19:51 +00:00
..
ci vc4/ci: update expected results 2026-05-25 10:22:12 +02:00
cle broadcom/cle: parse once the XML spec 2026-04-06 09:17:15 +00:00
clif broadcom: use Mesa logging functions 2026-04-06 07:40:55 +00:00
common v3dv: Enable meta_copy_buffer with TFU for V3D 7.1 2026-05-26 07:50:42 +00:00
compiler broadcom/compiler: Add explicit NOP instruction at page boundaries 2026-05-06 09:21:28 +00:00
drm-shim v3d/drm-shim: add GPU selection 2026-05-27 10:19:50 +00:00
ds mesa: replace most occurrences of getenv() with os_get_option() 2025-11-06 04:36:13 +00:00
perfcntrs broadcom: use Mesa logging functions 2026-04-06 07:40:55 +00:00
qpu broadcom/qpu: add V3D 7.1 disasm tests 2026-05-06 07:33:42 +00:00
simulator broadcom/simulator: V3D is always 4.2 or above 2026-05-27 10:19:50 +00:00
vulkan v3dv: disable threadeded submissions under drm-shim 2026-05-27 10:19:51 +00:00
.editorconfig
meson.build broadcom: Add perfetto data source 2024-12-13 12:29:11 +00:00