diff options
| author | abilliontokens <39147239+abilliontokens@users.noreply.github.com> | 2026-11-24 07:45:22 +0300 |
|---|---|---|
| committer | Len1k <102464172+Len1k@users.noreply.github.com> | 2026-11-24 07:45:22 +0300 |
| commit | a44e66e9a384a334501ea363ea6efee2ab868cbe (patch) | |
| tree | 31efa19c6e216e44852dd4e8f7556a3943a5ec91 /runtime/src/thread_stacks.cpp | |
| parent | d2cd6c0d970083eee4d7b40daabb2480a77b1790 (diff) | |
Runtime: propagate device loss found by the retire-ticket progress query
VulkanContext::completed_retire_ticket() queried each pending submission's
timeline semaphore with vkGetSemaphoreCounterValue but treated every
non-VK_SUCCESS result as "not completed yet". A VK_ERROR_DEVICE_LOST seen
there was swallowed, so the context was never marked lost and the queue went
on to acquire, record and submit new command buffers.
Every other counter query in the layer (the queue's own progress query in
VulkanQueue::completed(), VulkanFence::completed(), the wait and submit
paths) already calls mark_device_lost() on VK_ERROR_DEVICE_LOST; this one
was the exception.
acquire() runs completed_retire_ticket() before recycle_finished()'s
completed(), so whichever query runs first observes the loss. When the
retire-ticket query is the first to see it, it consumes the error and the
queue's own query then reads a healthy counter. That is why
vk_queue_query_sync's section 5 (00832c18) failed on the RX 9070 XT /
AMD 26.11.2 but passed on NVIDIA: the retire ticket is still pending there,
so its query runs first.
Mark the context lost here too, outside submit_mutex_ as submit() does, and
report no completed ticket so nothing is retired against a lost device.
Fixes D3D-599.
(cherry picked from commit 3a21e3aea481bb9f9d9bfe9360c5b972fb19f7bb)
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions