Repository navigation
Shaders: no REUSE pass for compute programs (AMD compiler crash, #145) - #195
icecreammule277-dot wants to merge 1 commit into
Conversation
…less#145) amdxc64.dll (RX 9070 XT, Adrenalin 32.0.32029.2010) crashes at +0x861b9f in CreateComputePipelineState on some compute programs after the REUSE clean-up pass. Replayed offline, one process per program: with every pass 9 of 113 refused compute programs crash; REUSE alone crashes all 9; every pass but REUSE builds all 183. The crashers are not only the seven- and eight-sampler ray-traced lighting resolves: 842de0c32bc8dcc5 has three samplers. With this, the title's compute pipelines build in game and the world draws lit. c1eee35dbc50a9ef and f16876929fa64f9f still crash with any passes (fxceless#145): another cause. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YGeqyC9iSYLKw2tsLn1HzB
…USE pass for compute programs (AMD compiler crash, #145) Part of #16
|
The offline replay table (REUSE alone 9/9 crashes, every other pass 183/183 builds) makes the case very clearly, and the One small thing: Separately, the pass is now skipped for compute on every vendor. If REUSE's effect on NVIDIA turns out to matter, gating on AMD's vendor id could be a follow-up. Written with an AI assistant (Claude). |
AMD's driver (amdxc64.dll) crashes in CreateComputePipelineState on some compute programs after the pass that keeps one instruction for one value; upstream's PR fxceless#195 found 9 of 113 such programs on an RX 9070 XT, the ray-traced lighting resolves among them, and all of them building without it. Compute programs now skip that pass; the others keep it. VICTORY_REUSE_ALL=1 runs it on compute programs as before, and the shader cache keys on the switch. Written against this tree from the PR's description (the cloud cannot fetch upstream); not yet tried on the RX 7900 XT, where one pipeline is skipped by hand (VICTORY_SKIP_PIPELINES=559d9f0184e15fe3). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017V7WBDNVWnxASvsrEYBisP
|
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head AI-assisted (Claude Code); no game data. |
Fixes most of #145 (and the same crash reported in #3 and #120):
amdxc64.dll+0x861b9f(read 0x8) inCreateComputePipelineStateon an RX 9070 XT.Change
Shader::finishno longer runs the REUSE clean-up pass (bitcode::opt::REUSE) on compute programs.VICTORY_REUSE_ALL=1keeps it, for comparing.How it was found
The containers of the compute programs a run refused were saved and each was replayed offline with
victory translate <container> --pipelines, one process per program (a compiler crash then only ends that process):VICTORY_SHADER_OPTThis agrees with the sweep in #145 (68 of 70 crashers build with
VICTORY_SHADER_OPT=11).A first version that dropped REUSE only for compute programs with seven or more immediate samplers (the ray-traced lighting resolves) still crashed in game, on
842de0c32bc8dcc5, which has three; hence every compute program.Result in game
RX 9070 XT, Adrenalin 32.0.32029.2010, Windows 11: with this change and no compute pipeline refused or skipped for the crash, the compute pipelines build and the opening cutscene draws a lit 3D scene; before, the lighting resolves had to be refused and the world stayed black.
Not fixed
c1eee35dbc50a9efandf16876929fa64f9fcrash with anyVICTORY_SHADER_OPT, including 0 (#145), so they have another cause; they still needVICTORY_SKIP_PIPELINES.Notes
cargo test -p victory-shader --libpasses.🤖 Generated with Claude Code