GPU: name the commands at a DRED stop, and dump translated shaders #279
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/279"
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 ALFREDOHDEZ on 2026-11-24T02:01:05Z.
What
Two diagnostics changes that came out of looking at the NVIDIA world hang (#71, #97). Neither changes what a release build does.
in_flight()listed the first 12 commands after the barrier before the stop. In a long run between two barriers, that can miss the commands at the stop. It now names up to 40 commands, starting a few before the stop. (Work between barriers overlaps, so the first commands may still be running too; they are no longer listed when the run is long.)VICTORY_SHADER_DUMP=<dir>(diagnostics builds only). When a shader is translated, it writes the container as<hash>.binand, if translation succeeds, its DXIL as<hash>.dxil, keyed by the same 16-digit hash the DRED andVICTORY_GPU_TIMINGlines print, so it can go todxc -dumpbin. Documented in the README's debugging table.Tested
Windows 11, RTX 4070,
mainatd2a4bae.in_flight_names_the_commands_at_the_stop: 100 marked dispatches between two barriers, stop at dispatch 80. The report names dispatches 79 and 80 and not dispatch 0. It passes with and without--features diagnostics.VICTORY_D3D12_DRED=1): fora list stopped at command 203 of 518 (op 6), in a run20..348, the report starts at command 199.VICTORY_SHADER_DUMPwrote 2,059.binand 1,698.dxilfiles in one run;dxc -dumpbinread the ones I tried.cargo xtask policy --staged: 3 files ok. I did not runcargo test --workspace.Edited: an earlier version of this description gave a wrong dump count and a wrong before/after example.
🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-24T04:12:29Z.
Tested PR #279 at head
02f0e29f8031d7b97353e9b90f6bbab5495b6b10(state at test time: OPEN). Pre-comment refresh: state OPEN, head unchanged at02f0e29f8031d7b97353e9b90f6bbab5495b6b10.cargo test --locked -p victory-gpu --features diagnostics in_flight_names_the_commands_at_the_stop— passed (ok. 1 passed; 0 failed; 0 ignored; 0 measured; 46 filtered out; finished in 0.00s ); cases: host::tests::in_flight_names_the_commands_at_the_stop.Behavior covered: Checks diagnostic output names commands in flight at a stop, with the diagnostics feature enabled.
Code: crates/victory-gpu/src/host.rs, crates/victory-gpu/src/pipeline.rs
Imported from Marvisak/VIctory. Originally posted by TrashTalker3460 on 2026-11-24T05:51:00Z.
Review note on head
02f0e29: theVICTORY_SHADER_DUMPwriter (crates/victory-gpu/src/pipeline.rs:114) writes the title's shader containers and their DXIL withcreate_dir_all/fs::write. It doesn't callvictory_core::ensure_outside_repofirst.docs/asset-policy.md("Enforcement", point 3) asks every writer of derived data to call it, so that a dump directory pointed inside a checkout is refused. One call beforecreate_dir_allwould cover it.Read-only review, nothing built. AI-assisted (Claude Code); the claim above was checked against this head and
mainatd2a4bae. Context: the triage in #366.Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T08:45:55Z.
Review: APPROVED
Tested
02f0e29on Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (265 passed, 0 failed). The new test builds only with diagnostics, andcargo test -p victory-gpu --features diagnostics --lib in_flightpasses.in_flight: starting frommax(barrier + 1, done - 4)and naming up to 40 commands puts the stop and its neighbours in the report, where a long run between barriers used to show only the first 12. The test's arithmetic checks out (dispatch 80 is command 162).VICTORY_SHADER_DUMPis diagnostics-only and names files by the same 16-digit hash the DRED/timing lines print, which makes it easy to use.One request: the README row should say these dumps are title data. The
.binfiles are the game's own shader containers, and the asset policy forbids sharing them, so something like "(title data: keep local, don't attach to issues)" would keep users from posting them in bug reports, as they will want to. Not blocking.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:25:47Z.
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:README.md,crates/victory-gpu/src/pipeline.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
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.