AMD RX 9060 XT: run one clean-up pass for nine programs its compiler fails on (complements #1213) #1247
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!1247
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1247"
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?
@MrToucann on GitHub · 2026-11-26 01:53 UTC · original
MrToucann:amd-shader-fixes→main· +72 −1 · 4 files · 2 commits · openProblem
On an AMD Radeon RX 9060 XT (driver 32.0.32029.2010,
amdxc64.dll8.18.10.0514), AMD's shader compiler fails creating the pipelines of some translated programs. It either reads a null pointer (0xC0000005) or ends the process (0xFFFFFFFF). The DXIL passesdxil.dllvalidation.The programs were found by creating every program's pipeline in a process of its own: 2,684 compute programs, and 23,279 others each with a stand-in partner stage.
Scope: what #1213 doesn't cover
The buffer size query programs are #1213's: a non-uniform handle per query. I tested it on the 9060 XT and it clears all four of them (see the thread). This PR now only covers the programs #1213 doesn't target, which build once one clean-up pass runs:
indirect_diffuse_lighting:CS_ScreenProbes_ActivateRays0xFFFFFFFF), here and on DexNomFOLDPS_*_PBR_MATERIAL_*GLINTS*pixel programsFACTSThe pass runs for these programs whatever
VICTORY_SHADER_OPTsays. On this card the full clean-up has to stay off, since it trips the same compiler elsewhere. Programs are chosen by container digest, so other programs keep their passes as they are, and a pass doesn't change what a program computes.All of it is in
emit/lower/amd.rs, with one-line hooks:lower.rs:mod amd;mod.rs:lower::amd::begin(c.digest);before loweringshader.rs:| super::lower::amd::passes()in the pass setTesting (RX 9060 XT,
VICTORY_SHADER_OPT=0)cargo test -p victory-shader: 218 passed.🤖 Generated with Claude Code
https://claude.ai/code/session_01A752X7rKCzD2ViPbSWcyut
@IxMxAMAR on GitHub · 2026-11-26 01:57 UTC · original
#1213 targets the same pattern without a digest list. Here (RX 9070 XT, same driver) it is a buffer's
getDimensionsasked through the same uniform heap handle as its loads that crashes AMD's compiler; asking it through a non-uniform handle of its own buildsbvh_skinning:CSComputeSkinningTreeAnimVelocity,CS_UpdateSkinnedAttachMeshTreeParticles(c1eee35dbc50a9ef) and three more, and a whole-archivetranslate --pipelinesmade all 25,636 pipelines.If you can, it would be good to know whether #1213 alone also clears your four size-read programs on the 9060 XT.
@MrToucann on GitHub · 2026-11-26 02:16 UTC · original
Thanks. I tested #1213 on an RX 9060 XT (driver 32.0.32029.2010, amdxc64 8.18.10.0514) with the 13 programs from this PR, each in its own process, with
VICTORY_SHADER_OPT=0:main(fc63ce1) + #1213: 12 of 13 build and validate, including all four size-read programs (bvh_skinning:CSComputeSkinningTreeAnimVelocity,CS_UpdateSkinnedAttachMeshTreeParticlesand bothrtdirectionalshadowstraces).main(64bd58f) + #1213'slower.rs/shader.rschange, ported by hand: the same four build there too. Both RT shadow traces fail on DexNom without it.So #1213 alone clears the size-read programs on the 9060 XT too, and without a digest list. That's better than the groupshared hoist in this PR.
One data point from reducing it: giving the query a separate handle on the same index that stays uniform still crashed, so the non-uniform marking seems to be what matters.
Two things are still failing with #1213, and it doesn't target them:
indirect_diffuse_lighting:CS_ScreenProbes_ActivateRaysends the process (0xFFFFFFFF) on both forks unless the constant-folding pass (FOLD) runs.*_GLINTS*pixel programs crash on DexNom unlessFACTSruns. They build on fxceless as it is.I'll trim this PR to just those per-program passes and leave the size-read programs to #1213.
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.