GPU: a removal report without DRED names the switch, not "unsupported" #2557
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by Ingenioeren on 2026-11-25T15:46:14Z.
What
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
Imported from Marvisak/VIctory. Originally posted by oni-swr on 2026-11-25T16:12:12Z.
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.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T18:39:12Z.
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
Imported from Marvisak/VIctory. Originally posted by Ingenioeren on 2026-11-25T19:02:11Z.
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.Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T19:59:54Z.
Review: APPROVED
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.
Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T20:16:45Z.
Review: APPROVED
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.