GPU: name the switch when a removal has no device-removed data #537

Open
github-bot wants to merge 1 commit from github-bot/gh-537 into main AGit
Owner

@⁠coderanonymus on GitHub · 2026-11-24 04:39 UTC · original
coderanonymus:gpu-dred-hint → main · +11 −0 · 2 files · 1 commits · open

Two points from #468, neither covered by an open PR.

What

The removal report names the switch instead of an "unsupported" error. Without VICTORY_D3D12_DRED, removal_data still queried the device-removed data. The breadcrumb query then fails with DXGI_ERROR_UNSUPPORTED, and the report read:

host GPU device removed after a submission of 32 lists; no breadcrumbs (The specified device interface or feature level is not supported on this system. (0x887A0004))

As #468 notes, that reads like a missing GPU feature. It is only missing DRED data. When device-removed data is off, the report now says how to get it, the same way fail already gives the debug-layer hint:

host GPU device removed after a submission of 32 lists; a diagnostics build with VICTORY_D3D12_DRED=1 records where the GPU stopped; device removed: ...

The removal reason (GetDeviceRemovedReason) is still appended by fail, as before.

README: the GPU timeout. On slower GPUs a world frame can outlast Windows' default 2 s GPU timeout. Windows then removes the device as hung (slow host submission ms=5773 just before it in #468). The reporter found that raising TdrDelay and TdrDdiDelay stops that reset. The README warning now says so, in one sentence.

Verification

  • cargo clippy -p victory-gpu --target x86_64-pc-windows-msvc, with and without --features diagnostics: no new warnings.
  • rustfmt: no diffs in the changed lines.
  • Not run on a GPU. The change only affects the text of a failure report.

No game data used.

🤖 Generated with Claude Code

**@⁠coderanonymus** on GitHub · 2026-11-24 04:39 UTC · [original](https://github.com/Marvisak/VIctory/pull/537) `coderanonymus:gpu-dred-hint` → `main` · +11 −0 · 2 files · 1 commits · open Two points from #468, neither covered by an open PR. ## What **The removal report names the switch instead of an "unsupported" error.** Without `VICTORY_D3D12_DRED`, `removal_data` still queried the device-removed data. The breadcrumb query then fails with `DXGI_ERROR_UNSUPPORTED`, and the report read: ``` host GPU device removed after a submission of 32 lists; no breadcrumbs (The specified device interface or feature level is not supported on this system. (0x887A0004)) ``` As #468 notes, that reads like a missing GPU feature. It is only missing DRED data. When device-removed data is off, the report now says how to get it, the same way `fail` already gives the debug-layer hint: ``` host GPU device removed after a submission of 32 lists; a diagnostics build with VICTORY_D3D12_DRED=1 records where the GPU stopped; device removed: ... ``` The removal reason (`GetDeviceRemovedReason`) is still appended by `fail`, as before. **README: the GPU timeout.** On slower GPUs a world frame can outlast Windows' default 2 s GPU timeout. Windows then removes the device as hung (`slow host submission ms=5773` just before it in #468). The reporter found that raising `TdrDelay` and `TdrDdiDelay` stops that reset. The README warning now says so, in one sentence. ## Verification - `cargo clippy -p victory-gpu --target x86_64-pc-windows-msvc`, with and without `--features diagnostics`: no new warnings. - `rustfmt`: no diffs in the changed lines. - Not run on a GPU. The change only affects the text of a failure report. No game data used. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Without VICTORY_D3D12_DRED the breadcrumb query fails with
DXGI_ERROR_UNSUPPORTED, and the removal report read "no breadcrumbs (The
specified device interface or feature level is not supported on this
system. (0x887A0004))", which looks like a missing GPU feature (#468).
Say which build and switch record them instead, as the debug layer hint
in `fail` does.

README: world frames can outlast Windows' 2 s GPU timeout on slower GPUs;
say how to raise it (#468).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:07:33 +00:00
Author
Owner

@⁠Yorivel on GitHub · 2026-11-24 09:38 UTC · original

Checked on current main (8e79c80): the branch merges without conflicts, and cargo clippy -p victory-gpu --all-targets -- -D warnings is clean with and without --features diagnostics; rustfmt reports no diffs in the changed lines (Windows 11 26300, MSVC, Rust 1.98.1).

On the code: in a release build dred_on() is always false, so on main every removal report carries the no breadcrumbs (… 0x887A0004) text, and the closing hint only names VICTORY_D3D12_DEBUG, which doesn't give the breadcrumbs. The early return here replaces that with the switch that does. Not run against a removed device.

Written with Claude Code.

**@⁠Yorivel** on GitHub · 2026-11-24 09:38 UTC · [original](https://github.com/Marvisak/VIctory/pull/537#issuecomment-7127694451) Checked on current `main` (`8e79c80`): the branch merges without conflicts, and `cargo clippy -p victory-gpu --all-targets -- -D warnings` is clean with and without `--features diagnostics`; rustfmt reports no diffs in the changed lines (Windows 11 26300, MSVC, Rust 1.98.1). On the code: in a release build `dred_on()` is always false, so on `main` every removal report carries the `no breadcrumbs (… 0x887A0004)` text, and the closing hint only names `VICTORY_D3D12_DEBUG`, which doesn't give the breadcrumbs. The early return here replaces that with the switch that does. Not run against a removed device. Written with Claude Code.
Author
Owner

@⁠sennecools on GitHub · 2026-11-24 10:29 UTC · original

Checked against a real device removal on an RX 9070 XT (RDNA 4), Windows 11 Pro 26300. The build was a diag build of main 8e79c80 + this PR at 2021e0f. It also included #493 and #427, which do not touch removal_data.

  • Without VICTORY_D3D12_DRED: one offline run. The device was removed (DXGI_ERROR_DEVICE_HUNG) after 245 s. The report gives the new hint, and there is no "not supported" error in it.
  • With VICTORY_D3D12_DRED=1: six offline runs. Every report still has its breadcrumbs, and none of them contains the hint.

On the README sentence: the bounded root SRV runs on this card also ended as hung, after submissions of up to 2.6 s. That fits the timeout case it describes.

No game data is in this comment.

AI-assisted (Claude Code).

**@⁠sennecools** on GitHub · 2026-11-24 10:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/537#issuecomment-7128846788) Checked against a real device removal on an RX 9070 XT (RDNA 4), Windows 11 Pro 26300. The build was a diag build of `main` 8e79c80 + this PR at 2021e0f. It also included #493 and #427, which do not touch `removal_data`. - **Without `VICTORY_D3D12_DRED`:** one offline run. The device was removed (`DXGI_ERROR_DEVICE_HUNG`) after 245 s. The report gives the new hint, and there is no "not supported" error in it. - **With `VICTORY_D3D12_DRED=1`:** six offline runs. Every report still has its breadcrumbs, and none of them contains the hint. On the README sentence: the bounded root SRV runs on this card also ended as hung, after submissions of up to 2.6 s. That fits the timeout case it describes. No game data is in this comment. AI-assisted (Claude Code).
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:24 UTC · original

Automated triage for the maintainers.

Needs rebase. This PR does not merge cleanly into current main (ac2525d). Conflicting files: README.md.

The content has not been reviewed yet; it will be once the branch is rebased onto main.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 00:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/537#issuecomment-7148475596) <!-- victory-triage v1 head=2021e0f26970a164dbb58db0a266423057f58564 verdict=needs-rebase at=2026-11-25T00:13:20Z --> Automated triage for the maintainers. **Needs rebase.** This PR does not merge cleanly into current `main` (ac2525d). Conflicting files: `README.md`. The content has not been reviewed yet; it will be once the branch is rebased onto `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request has changes conflicting with the target branch.
  • README.md
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/537/head:github-bot/gh-537'
git switch 'github-bot/gh-537'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-537'
git switch 'github-bot/gh-537'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-537'
git switch 'github-bot/gh-537'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-537'
git switch 'main'
git merge --squash 'github-bot/gh-537'
git switch 'main'
git merge --ff-only 'github-bot/gh-537'
git switch 'main'
git merge 'github-bot/gh-537'
git push origin 'main'
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/Marvisak--VIctory!537
No description provided.