upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_queue_query_sync_test.cpp
diff options
context:
space:
mode:
authorsds-228 <329233051+sds-228@users.noreply.github.com>2026-11-23 05:31:10 +0300
committersds-228 <329233051+sds-228@users.noreply.github.com>2026-11-23 05:31:10 +0300
commitdea6c3835494cc97ea3ba4a0964850875a284edf (patch)
tree03bd61dcda07bda2c8330543a5f30133b6522571 /runtime/test/vk_queue_query_sync_test.cpp
parentdf99c89162d18c30fd255cd47e85ce6499413c8b (diff)
vulkan: skip later same-batch callbacks cancelled re-entrantly
FenceWaitDispatcher recorded every entry of a ready batch with the dispatching thread as owner, and in_flight() ignored all same-owner entries. A callback for semaphore A that re-entered cancel(B) therefore returned while B was still queued in the same batch and would run with a semaphore the caller had already destroyed. Give each batch entry its own dispatch slot. cancel() marks not-yet-started slots for that semaphore as cancelled so dispatch skips them, while a callback actually running on another thread is still waited for. The skipped entry's event is completed so no waiter is left behind. Regression: two ready callbacks in one batch; A cancels B and B must not run. Red before (B ran), green after.
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions