GPU: RDNA4 hosts leave the reuse clean-up pass out by default (amdxc64.dll fault at startup) #179
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!179
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-179"
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?
@a-to-z on GitHub · 2026-11-26 10:33 UTC · original
a-to-z:fix/rdna4-shader-opt→main· +59 −14 · 2 files · 1 commits · openReplaces #167, whose diagnosis (a race between compile threads) did not hold.
Problem
On an RX 9070 XT (RDNA4, PCI
1002:7550, driver 32.0.32029.2010) the title crashes during Game Init, every run:It happens on the first compile of one compute program,
052a2316a03b9ba1(8332 bytes; about 4,250 lines of DXIL with 717FMad, 588 selects and 60 phis), with or withoutVICTORY_LIBRARY_LOCK=1.What triggers it
Bisected with
VICTORY_SHADER_OPT(2-3 minute runs each):Only DEAD + FOLD + REUSE together produce a module the RDNA4 compiler faults on.
Change
emit::shader_opt(): unset,VICTORY_SHADER_OPTnow gives the host's default (set_host_shader_opt) instead of a fixed 63. Set, it wins as before. The parser returnsNonefor unset or unreadable values. The shader cache already keys onshader_opt(), so nothing translated under the old set is reused.host.rs: on an AMD RDNA4 adapter (Navi 480x7550/0x7551, Navi 440x7590) the default isDEFAULT & !REUSE(59), with a log line. Every other host, the 7900 XTX included, is unchanged.emit::passesre-exports the pass bits.Testing
scripts/play.ps1defaults: before, a fault at frame 51 every run; after, it reaches the intro cutscene and runs 3-4 minutes with no fault, with052a2316a03b9ba1translated and compiled.cargo test -p victory-shader --lib the_clean_up_switch,cargo clippy -p victory-gpu -p victory-shader -- -D warnings.🤖 Generated with 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.