mesa/src
Yiwei Zhang 68d31c28d4 venus: fix racy semaphore feedback counter update
Previously, we update the sfb dst slot upon vn_SignalSemaphore so that
vn_GetSemaphoreCounterValue can poll just the feedback slot itself.
However, that can race with pending sfb cmds that are going to update
the slot value, ending up with stuck sync progression.

This change fixes it by disallowing vn_SignalSemaphore to touch the sfb
dst slot. To ensure counter query being monotonic, vn_GetSemaphoreCounterValue
now takes the greater of signaled counter and the sfb counter read.

Test with dEQP-VK.synchronization* group:
- w/o this: stuck shows up within 2 min with 8 parallel deqp runs
- with this: no stuck for multiple full runs of the same

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14304
Fixes: 5c7e60362c ("venus: enable timeline semaphore feedback")
(cherry picked from commit 829bd406c0)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38803>
2025-12-03 15:02:48 -08:00
..
amd radv/video: Fix AV1 quantization map maxQIndexDelta value 2025-12-02 11:00:27 -08:00
android_stub
asahi hk: Report the correct plane count in VkDrmFormatModifierProperties2?EXT 2025-11-04 10:16:42 -08:00
broadcom ci: use $CI_TRON_JOB_PRIORITY tag on all ci-tron jobs 2025-12-01 09:16:33 -08:00
c11 c11/threads: fix build on c23 2025-11-13 08:10:20 -08:00
compiler glsl: support barrier() for task and mesh shader 2025-12-01 09:16:56 -08:00
drm-shim drm-shim: fix with asan 2025-09-03 11:47:00 +00:00
egl egl: Disable kopper on Android 2025-12-01 09:16:38 -08:00
etnaviv ci: use $CI_TRON_JOB_PRIORITY tag on all ci-tron jobs 2025-12-01 09:16:33 -08:00
freedreno tu: Fix leak of compute shader pipeline->base.executables_mem_ctx; 2025-12-01 09:16:52 -08:00
gallium lavapipe: fp16 flrp must also be lowered 2025-12-03 08:40:27 -08:00
gbm egl,glx: allow OpenGL with old libx11, but disable glthread if it's unsafe 2025-08-21 02:05:26 +00:00
getopt
gfxstream gfxstream: delete magma-over-gfxstream 2025-10-08 15:42:13 +00:00
glx glx: provide glx.pc 2025-10-14 20:53:10 +00:00
gtest
imagination pvr: enable samplerMirrorClampToEdge feature 2025-12-03 11:23:49 -08:00
imgui imgui: Silence build warnings for imgui 2025-09-16 06:16:19 +00:00
intel anv: add 32-wide subgroup requirement heuristic 2025-12-03 11:17:49 -08:00
loader loader: Wrap nouveau_zink_predicate with HAVE_LIBDRM 2025-11-21 14:22:57 -08:00
mesa mesa: fix function prototype 2025-12-01 09:16:51 -08:00
microsoft dozen: return INCOMPATIBLE_DRIVER on instance create failure 2025-12-01 09:16:32 -08:00
nouveau nil: Add support for Blackwell 8 and 16-bit modifiers 2025-11-13 08:10:18 -08:00
panfrost nir/lower_printf: fix missing singleton add 2025-12-01 09:16:41 -08:00
tool clang-format: Update the .clang-format files to conformance clang-format json-schema 2025-09-09 07:04:55 +00:00
util drirc: Add anv_assume_full_subgroups for Detroit: Become Human 2025-12-03 22:24:03 +00:00
virtio venus: fix racy semaphore feedback counter update 2025-12-03 15:02:48 -08:00
vulkan vulkan/wsi: Fix double destroy of present_id_timeline at swapchain create 2025-12-03 08:40:30 -08:00
x11 meson: add missing x11 dependency on libloader_x11 2025-08-08 21:45:59 +00:00
.clang-format clang-format: Move ForEachMacros into src/.clang-format for freedreno 2025-09-09 07:04:55 +00:00
meson.build Revert "meson: use vcs_tag() instead of custom script" 2025-10-06 23:06:11 +00:00