GPU: log the runtime’s DRED device state on removal #1211

Open
BradRoland wants to merge 1 commit from upstream-pr/1214 into main
BradRoland commented 2026-11-26 00:15:07 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by BradRoland on 2026-11-26T00:15:07Z.


The fourth long-session loss returned 0x887A0005 with no fault address in VICTORY_D3D12_DRED=faults. The existing report prints those two results. DRED also exposes a separate classification that may distinguish a hang, a fault, a page fault, or an unknown state. This change queries it when building the removal report and records the name and numeric value. Older runtimes continue to produce the existing fault and breadcrumb report when the additional interface is unavailable. DRED device states

The README now keeps the cause of that run open. An empty fault address alone cannot exclude a stale or unmapped reference. Microsoft’s page-fault reporting caveat

I exercised the reporting path on Windows with a local test probe and VICTORY_D3D12_DRED=faults.

D3D12 device Removal reason DRED state Page-fault output
Healthy RTX 4080 Device operational unknown (0) Query returned 0x887A0022
Isolated WARP device after application-requested ID3D12Device5::RemoveDevice 0x887A0005 unknown (0) No address reported

The removal-report unit test passed on the submitted branch. The software removal tests the reporting path. A gameplay loss is still needed to see what classification the driver supplies there.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6616503884 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1214). Originally posted by [BradRoland](https://github.com/BradRoland) on 2026-11-26T00:15:07Z. --- The fourth long-session loss returned `0x887A0005` with no fault address in `VICTORY_D3D12_DRED=faults`. The existing report prints those two results. DRED also exposes a separate classification that may distinguish a hang, a fault, a page fault, or an unknown state. This change queries it when building the removal report and records the name and numeric value. Older runtimes continue to produce the existing fault and breadcrumb report when the additional interface is unavailable. [DRED device states](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ne-d3d12-d3d12_dred_device_state) The README now keeps the cause of that run open. An empty fault address alone cannot exclude a stale or unmapped reference. [Microsoft’s page-fault reporting caveat](https://learn.microsoft.com/en-us/windows/win32/direct3d12/use-dred#caveat) I exercised the reporting path on Windows with a local test probe and `VICTORY_D3D12_DRED=faults`. | D3D12 device | Removal reason | DRED state | Page-fault output | | --- | --- | --- | --- | | Healthy RTX 4080 | Device operational | unknown (0) | Query returned 0x887A0022 | | Isolated WARP device after application-requested `ID3D12Device5::RemoveDevice` | 0x887A0005 | unknown (0) | No address reported | The removal-report unit test passed on the submitted branch. The software removal tests the reporting path. A gameplay loss is still needed to see what classification the driver supplies there.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1214:upstream-pr/1214'
git switch 'upstream-pr/1214'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1214'
git switch 'upstream-pr/1214'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1214'
git switch 'upstream-pr/1214'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1214'
git switch 'main'
git merge --squash 'upstream-pr/1214'
git switch 'main'
git merge --ff-only 'upstream-pr/1214'
git switch 'main'
git merge 'upstream-pr/1214'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
fxceless/victory-fork!1211
No description provided.