GPU: RDNA4 hosts leave the reuse clean-up pass out by default (amdxc64.dll fault at startup) #179
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by a-to-z on 2026-11-26T10:33:19Z.
Replaces #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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.