upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/vulkan_aftermath.cpp
diff options
context:
space:
mode:
authorCLHelper <359823989+CLHelper@users.noreply.github.com>2026-11-24 16:09:38 +0000
committerCLHelper <359823989+CLHelper@users.noreply.github.com>2026-11-24 16:09:38 +0000
commit5c1f77e1d4bafb3cba8c3e2037de28cb376f633e (patch)
tree79176ca66d552c48ec478d20f8f82ec49c82d9be /runtime/src/vulkan_aftermath.cpp
parenta28927849adb4e40dfdec8c32fb6758dcd205a37 (diff)
vulkan: say once when the device is lost (RT-DEVICE-LOST-LOG)
VulkanContext::mark_device_lost() and the fence dispatcher's two VK_ERROR_DEVICE_LOST paths only set the device's lost flag. From then on every fence reads UINT64_MAX and device calls return DXGI_ERROR_DEVICE_REMOVED, so a title takes its own device-removed path (on the retail boot an int3 at game_scarlett_master.exe+0x2474606, reached from its frame wait reading a fence's completed value as ~0), and nothing in the log said the device had gone first. set_device_lost() sets the flag with an exchange and, the first time for a device, prints one stderr line saying where the loss was seen. mark_device_lost() takes that place as an optional argument; the dispatcher passes its own two. device_lost_reports counts the lines for tests. Tests: vk_fence_dispatcher_sync_test cases 3 and 4 check one line per device, from mark_device_lost() and from the dispatcher's vkGetSemaphoreCounterValue path, and none from a later call on the same device. AI-assisted.
Diffstat (limited to 'runtime/src/vulkan_aftermath.cpp')
0 files changed, 0 insertions, 0 deletions