diff options
| author | cixotdev <339371196+cixotdev@users.noreply.github.com> | 2026-11-22 21:17:10 -0300 |
|---|---|---|
| committer | cixotdev <339371196+cixotdev@users.noreply.github.com> | 2026-11-22 21:17:10 -0300 |
| commit | 8dfe9bce1a3cf078685db7a8da88b3b2b47e07a8 (patch) | |
| tree | f2763ee918e8b01b7457b17d8ff59525606cc9dc /runtime/src | |
| parent | aa2988cc555bad7ecd508b48a702adbb32fe7c95 (diff) | |
runtime: notify QueueHolds when a held CPU Fence::Signal fires
When ID3D12Fence::Signal is deferred behind a pending GPU queue signal,
Fence::Signal enqueues a FenceWaitDispatcher callback that calls
vkSignalSemaphore directly instead of going through VulkanFence::signal.
That callback previously never notified QueueHolds via
holds().signaled(semaphore, value) and holds().pump_ready(), leaving any
cross-queue Wait-before-Signal batch stalled on that fence value
forever even after GetCompletedValue() reached it.
Record whether vkSignalSemaphore succeeded, decrement held_ first, and
then call holds().signaled(semaphore, value) and holds().pump_ready()
with no dispatcher or queue lock held. Add cross-queue regression cases
to check_held_cpu_signal in d3d12_fence_timing_test.cpp covering both a
Wait queued before the held CPU Signal and a Wait queued while the CPU
Signal is already held.
Claim: https://github.com/ItsNotRexed/Leonida/issues/4084#issuecomment-7088187469
AI-assisted: yes (Antigravity)
Diffstat (limited to 'runtime/src')
0 files changed, 0 insertions, 0 deletions