mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-25 22:15:57 +00:00
A device loss logs the last descriptor pool events, and a pool with two owners is logged at once
The replay keeps a ring of the last 1024 descriptor pool events (a CbRes made, a pool handed to a CbRes from the spare list or new, a pool reset or destroyed), a few per submission and nothing per draw. vk_device_fault_report logs the newest 256 after a device loss. Each pool's owner is checked under spare_lock as the pool is handed out and as it is reset: a pool handed out while another CbRes holds it, or reset by a CbRes that does not hold it, is logged at once with the 64 events before it. On a GTX 1050 Ti with TOTK_BIND_INC on, the validation layer reported a descriptor pool reset while a command buffer used it, then binds of its sets, before a device lost that slower diagnostic runs did not bring back; the next one names the pool's owners. --probe-vkexec gains a set batch part (60 submissions of batched sets with splits and empty submissions beside them), a pool owner part (one pool handed to two CbRes, then reset by the one that no longer holds it: two conflicts) and calls the device loss report on the working device to check that it comes out and returns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
434533aa11
commit
d6715029e5
5 files changed
+253
No files matched your search
@@ -546,6 +546,7 @@ void vk_device_fault_report(VkResult r) {
|
||||
vk_crumbs_report();
|
||||
vk_pass_marks_report();
|
||||
vk_mem_fault_log();
|
||||
vk_exec_pool_journal_log();
|
||||
VkCtx *c = vk_ctx();
|
||||
PFN_vkGetDeviceFaultInfoEXT get =
|
||||
c && c->has_device_fault ? (PFN_vkGetDeviceFaultInfoEXT)vkGetDeviceProcAddr(c->device, "vkGetDeviceFaultInfoEXT")
|
||||
|
||||
Reference in new issue
Block a user