mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 21:49:57 -04:00
End the run as a lost device when a timeline reads above every value its signals carry, and log the submissions' state with the first occlusion query left unwritten.
The RX 6000 reports of 0.9.1 and 0.9.2 ran the completion callbacks of submissions the GPU never finished before any call returned VK_ERROR_DEVICE_LOST, although the completion thread polled the device first. Every value a queue hand-over or a host signal gives the submissions' timeline or the executed timeline is now noted before the signal (vk_sync_hw.h); the completion thread and the wait after a submit end the run when a timeline reads above that note. The first occlusion query found unwritten after its fence logs its submission, the submissions' values, both timelines' readings and the GPU breadcrumbs, and the lost device's report starts with the same line, so the next report shows whether the driver gave a value above the note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -797,6 +797,7 @@ static const char *fault_address_type(VkDeviceFaultAddressTypeEXT t) {
|
||||
// The report of a lost device: the breadcrumbs, the pass marks, the video memory and the driver's fault information.
|
||||
// Once per process, on the thread that saw the loss first (vk_device_lost_check).
|
||||
static void device_fault_report(void) {
|
||||
vk_sync_lost_report();
|
||||
vk_crumbs_report();
|
||||
vk_pass_marks_report();
|
||||
vk_mem_lost_report();
|
||||
@@ -894,6 +895,7 @@ int vk_selftest(void) {
|
||||
vmaDestroyBuffer(c->vma, buf, alloc);
|
||||
|
||||
VkSemaphoreSignalInfo sig = {.sType = VK_STRUCTURE_TYPE_SEMAPHORE_SIGNAL_INFO, .semaphore = c->timeline, .value = 1};
|
||||
vk_sync_signal_note(1); // a host signal of the timeline is noted first (vk_sync.c timeline_beyond)
|
||||
if ((r = vkSignalSemaphore(c->device, &sig)) != VK_SUCCESS) { rt_log("vk selftest: vkSignalSemaphore failed (%d)", (int)r); return 3; }
|
||||
uint64_t value = 1;
|
||||
VkSemaphoreWaitInfo wi = {.sType = VK_STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO, .semaphoreCount = 1, .pSemaphores = &c->timeline,
|
||||
|
||||
Reference in New Issue
Block a user