GPU: a removal report without DRED names the switch, not "unsupported" #2559
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2559
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2559"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Ingenioeren on GitHub · 2026-11-25 15:46 UTC · original
Ingenioeren:gpu-removal-without-dred→main· +43 −1 · 1 files · 1 commits · openWhat
When the host device is removed and
VICTORY_D3D12_DREDis not set, the report no longer passes on the runtime'sDXGI_ERROR_UNSUPPORTEDfromGetAutoBreadcrumbsOutput. Instead it says that device-removed data is off and names the switch (VICTORY_D3D12_DRED=1in a diagnostics build). With DRED on, the text is unchanged.Why
removal_dataruns on every removal, but DRED is only enabled with the switch. With DRED off, the report read:The
0x887A0004there only means "breadcrumbs were not recorded", but it reads like the cause of the removal (an unsupported feature). That misled me while I was reading a local test run (WARP, diagnostics build without DRED). The real removal reason is thedevice removed:part that follows.How
no_breadcrumbs(dred, &e)incrates/victory-gpu/src/host.rs, called where the inlineformat!was.host::removal_report::breadcrumbs_off_names_the_switch_not_the_runtime_error. With DRED off, the text names the switch and has no0x887A0004. With DRED on, it keeps the runtime error. The old inline text always contained the runtime error, so the first assertion pins the change.Tested
cargo test -p victory-gpu: 196 passed, 1 ignored (Windows 11, RX 6750 XT)cargo clippy -p victory-gpu --all-targets --all-features -- -D warnings: cleancargo run -p xtask -- policy --staged: okNot tested: an actual device removal with this build. The tests share one device, so a removal can't be forced safely there. The change only touches the report string.
AI assistance: prepared with Claude Code, reviewed by Ingenioeren.
🤖 Generated with Claude Code
@oni-swr on GitHub · 2026-11-25 16:12 UTC · original
Independent verification (software WARP only)
fb93084c31cf8d5e5b4f916fe49fc3def0191843(checked out detached)67e8ae1401df112248aed36d0024483181b718b7; read-onlygit merge-tree --write-tree origin/main <head>merges cleanly (exit 0); GitHub reports MERGEABLE.VICTORY_D3D12_WARP=1withVICTORY_DXILpointing at the Windows SDK 10.0.26100dxil.dll. Default features, no extra test flags.Commands and results
cargo test --locked -p victory-gpucargo test --locked -p victory-gpu --lib breadcrumbs_off_namesReview: Looks correct. Only the report text changes: with DRED off the unsupported-answer is replaced by a line naming
VICTORY_D3D12_DRED=1; with DRED on the text is unchanged. The test pins both branches. A real device removal was not exercised (as the description also says).Review and verification by Claude Code (Claude Sonnet 5.5), AI-assisted; no game files, dumps, shader names or hashes involved.
@Marvisak on GitHub · 2026-11-25 18:39 UTC · original · edited 2026-11-25 20:22 UTC
Automated triage for the maintainers.
Merge candidate. In
crates/victory-gpu/src/host.rs, the removal report now goes through a newno_breadcrumbs. Whendred_on()is false andGetAutoBreadcrumbsOutputfails withDXGI_ERROR_UNSUPPORTED, the report says device-removed data is off and namesVICTORY_D3D12_DRED=1, instead of passing on a "not supported" message that reads like the cause of the removal. Every other error, and every error with DRED on, is reported as before. I checked thatdred_on()onmainis gated on the diagnostics feature plus that switch, which matches the new wording. Two small tests pin both branches.Reply to the author: thanks. Both points are addressed: only
DXGI_ERROR_UNSUPPORTEDis replaced now, and the rebased head passes CI.CI:
checkpassed (Windows).Generated by Claude Code
@Ingenioeren on GitHub · 2026-11-25 19:02 UTC · original
Thanks for the triage. Both points are addressed in
5209719, which is rebased on currentmain(13f91ca):DXGI_ERROR_UNSUPPORTEDis replaced now. Any other error fromGetAutoBreadcrumbsOutputis reported as before. A new test,breadcrumbs_off_keeps_other_errors, checks thatDXGI_ERROR_INVALID_CALLkeeps its code.emit::memory_tests::heap_direct_texture_reads_mark_their_heap_indexin victory-shader, which is the heap_direct failure from #2571. This PR only touchescrates/victory-gpu/src/host.rs. The push starts a new CI run.Local results:
cargo test --locked --offline -p victory-gpupassed (197 passed, 1 ignored),cargo clippy -p victory-gpu --all-targetsgave no warnings, andcargo run -p xtask -- policy --stagedpassed.@fuzeofficlal on GitHub · 2026-11-26 19:59 UTC · original · approved these changes
Verified locally merged onto
origin/main(63bcca43) at PR head5209719f(Windows 11 x64, NVIDIA RTX 5090 + Microsoft WARP,VICTORY_D3D12_DEBUG=1):crates/victory-gpu/src/host.rs(removal_datalines 1470-1476,no_breadcrumbslines 3327-3334): replacesDXGI_ERROR_UNSUPPORTED(0x887A0004) with theVICTORY_D3D12_DRED=1 in a diagnostics buildhint only when!dred_on(), while preserving all other HRESULTs (e.g.DXGI_ERROR_INVALID_CALL) and all errors when DRED is enabled. Checked thatdred_on()matches the diagnostics-feature gating described in the message across both default and diagnostics builds.cargo xtask policy: 191 files ok.cargo clippy --locked -p victory-gpu --all-targets -- -D warnings(default and--all-features): 0 warnings.cargo test --locked -p victory-gpu --lib host::removal_report::and--features diagnostics: 2/2 passed in both configurations on RTX 5090 and WARP (breadcrumbs_off_names_the_switch_not_the_runtime_error,breadcrumbs_off_keeps_other_errors).#2273(both touchhost.rs) with clippy and GPU tests passing.Synthetic tests only; looks ready to merge.
@Dukestar69 on GitHub · 2026-11-26 20:16 UTC · original · approved these changes
LGTM — verified on Windows against
origin/main(63bcca4).DXGI_ERROR_UNSUPPORTEDwith an actionable hint pointing toVICTORY_D3D12_DRED=1when DRED is off (while preserving all other errors and DRED-on errors verbatim) makes GPU removal reports much clearer.cargo test -p victory-gpu --lib host::removal_report:: -- --test-threads=1: 2 passed, 0 failed.cargo clippy -p victory-gpu --all-targets -- -D warnings(default +--features diagnostics): clean.cargo xtask policy: 191 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.