Preserve relay fence context on GPU device loss #3413

Closed
github-bot wants to merge 1 commit from github-bot/gh-3413 into main AGit
Owner

@⁠Kitrae on GitHub · 2026-11-29 22:58 UTC · original
Kitrae:fix/gpu-removal-fence-context → main · +70 −34 · 1 files · 1 commits · closed without merging

Refs #3358

What it changes

The RTX 5070 report showed the submitting thread between submissions while the relay was still checking a fence. The crash message described the GPU as idle based on the submitting thread alone.

  • Report the submitting thread’s phase without inferring GPU activity.
  • Treat Direct3D’s device-removal fence value as a separate error before the relay drains the queue. Keep pending command lists alive through the report so their diagnostics remain available.
  • Report the target fence and, when the relay observed one before waiting, its last valid completed value.

This changes how the relay handles and reports device loss. The cause of the hang in #3358 is still unknown.

How it was tested

  • Six focused victory-gpu library tests passed on Windows. They cover relay ordering, removal with and without queued flights, fence-report formatting, and the crash trail.
  • The diagnostics-feature check hit upstream’s known compile errors in the statistics and timing code (#2732). Gameplay on the RTX 5070 was not reproduced locally.

Checked for overlap

  • #2728 also rejects the device-removal fence value before relay publication and covers the synchronous submission path. This patch focuses on the relay, retaining the pending lists’ diagnostics and reporting fence progress and the CPU thread’s phase independently.
**@⁠Kitrae** on GitHub · 2026-11-29 22:58 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3413) `Kitrae:fix/gpu-removal-fence-context` → `main` · +70 −34 · 1 files · 1 commits · closed without merging Refs #3358 ## What it changes The RTX 5070 report showed the submitting thread between submissions while the relay was still checking a fence. The crash message described the GPU as idle based on the submitting thread alone. - Report the submitting thread’s phase without inferring GPU activity. - Treat Direct3D’s device-removal fence value as a separate error before the relay drains the queue. Keep pending command lists alive through the report so their diagnostics remain available. - Report the target fence and, when the relay observed one before waiting, its last valid completed value. This changes how the relay handles and reports device loss. The cause of the hang in #3358 is still unknown. ## How it was tested - Six focused `victory-gpu` library tests passed on Windows. They cover relay ordering, removal with and without queued flights, fence-report formatting, and the crash trail. - The diagnostics-feature check hit upstream’s known compile errors in the statistics and timing code (#2732). Gameplay on the RTX 5070 was not reproduced locally. ## Checked for overlap - [x] #2728 also rejects the device-removal fence value before relay publication and covers the synchronous submission path. This patch focuses on the relay, retaining the pending lists’ diagnostics and reporting fence progress and the CPU thread’s phase independently.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 23:04:09 +00:00
github-bot closed this pull request 2026-12-01 18:58:43 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3413
No description provided.