GPU: name the commands at a DRED stop, and dump translated shaders #279
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!279
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@ALFREDOHDEZ on GitHub · 2026-11-24 02:01 UTC · original
ALFREDOHDEZ:gpu/dred-stop-point-and-shader-dump→main· +42 −3 · 3 files · 1 commits · openWhat
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
@jeremygold02 on GitHub · 2026-11-24 04:12 UTC · original · edited 2026-11-24 04:14 UTC
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
@ghost on GitHub · 2026-11-24 05:51 UTC · original
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.@Marvisak on GitHub · 2026-11-25 00:25 UTC · original
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
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.Merge
Merge the changes and update on Forgejo.