Diagnostics: VICTORY_DUMP_REFUSED saves refused shaders' containers; an ignored test replays one compute pipeline #266
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!266
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-266"
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?
@icecreammule277-dot on GitHub · 2026-11-24 23:04 UTC · original
icecreammule277-dot:flash/refused-replay→main· +151 −1 · 3 files · 1 commits · openDiagnostics, no change to rendering.
What
VICTORY_DUMP_REFUSED=<folder>: while building host pipelines, each refused shader's console container is written to<folder>/<hash>.<stage>.bin, so its translation can be replayed offline.Shader::container()and apub(crate)shader_cache::decode, so a replay can reach either a cache entry or a console container.pipeline::host::tests::replay_compute_pipeline(VICTORY_REPLAY_FILE): builds the runtime's root signature and callsCreateComputePipelineStatefor one shader, in a process of its own. Knobs for narrowing a host compiler crash:VICTORY_REPLAY_NO_CMP=1(comparison samplers as plain ones),VICTORY_REPLAY_SAMPLER_ORDER=rev(reverse the static samplers' registers),VICTORY_REPLAY_SAME_SAMPLER=n(every static sampler a copy of samplern).How it was used
This is how the AMD compiler crash behind #195 was found offline, with nothing running: dump the refused containers, then replay one per process. One container per process isolates an
amdxc64.dllcrash to a single program.With it: of 113 refused compute programs, 9 crash with every shader-opt pass; the REUSE clean-up pass (bit 4 of
VICTORY_SHADER_OPT) alone reproduces all 9, and every pass except REUSE builds all 183. #195 turns the REUSE pass off for compute.Testing
cargo buildandcargo test -p victory-gpu --libcompile.🤖 Generated with Claude Code
@ericomeehan on GitHub · 2026-11-24 23:25 UTC · original
Replaying one pipeline per process is what pinned the REUSE crash in #195, so having this test in the tree is very useful.
One gap on current main: the dump sits in
refuse(), but a pipeline the driver or its compiler refuses goes through theErr(e)arms inHostPipeline::new("host pipeline refused" for compute and graphics, "host mesh pipeline refused", and "host root signature refused"), which log and returnNonewithout callingrefuse(). SoVICTORY_DUMP_REFUSEDwrites nothing for exactly the refusals the description mentions. Moving the dump into a small helper called from those arms (and perhaps wheretranslated()fails) would cover them.Two small things:
container()landed betweentranslated()and its doc comment, sotranslated()now carries two doc lines andcontainer()the wrong one; and a README line reminding people not to attach the dumped containers to issues (they are the title's data, seedocs/asset-policy.md) would help.Written with an AI assistant (Claude).
@MamaLeVrai on GitHub · 2026-11-25 10:59 UTC · original
Test report: this PR's head no longer merges into
mainf85101b(RX 6950 XT machine; a trial merge): conflict incrates/victory-gpu/src/pipeline/host.rs. I did not resolve it. No game data.AI-assisted (Claude Code); no game data.
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.