Commit Graph

2 Commits

Author SHA1 Message Date
cf4f434d23 Merge main (82f033512) into device-fault; keep only the fence-counter loss
Main now has its own device-fault report (LEONIDA_DEVICE_FAULT=1, from #984)
and #980's device-lost line, so this branch's vulkan_device_fault.h, its
report code and vk_device_fault_test are dropped in favour of main's.

What stays is the case main does not cover: a loss the driver shows only as
a timeline counter of UINT64_MAX. VulkanFence::completed() then asks
vkDeviceWaitIdle through observe_result, so main's report runs, and marks
the device lost when that returns VK_ERROR_DEVICE_LOST.
vk_fence_lost_by_counter_test is adapted to main's reporter.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 10:50:03 +08:00
35e38baee3 vulkan: a loss the driver shows only as a counter of UINT64_MAX is recorded
VulkanFence::completed() passed a counter of UINT64_MAX on to the title
when vkGetSemaphoreCounterValue succeeded with it, so the layer never
learned its device was lost. It now asks vkDeviceWaitIdle under the
submit lock and records the loss on VK_ERROR_DEVICE_LOST, after which
the driver answers vkGetDeviceFaultInfoEXT.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 00:57:36 +08:00