AMD: the driver's shader compiler crashes (amdxc64.dll+0x85fd0f) during the first-boot screens #422
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#422
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@GamingRipperDoc on GitHub · 2026-11-25 00:36 UTC · original
On an AMD card this tree's build crashes inside AMD's shader compiler during the first-boot screens, about 11 s after start, with no input:
Setup: Windows 10 22H2 19045.7846, AMD RX 9070 XT, Adrenalin driver 32.0.32015.7029, Ryzen 9 9900X.
main31714deplus #420, the Windows 10 Agility SDK support (without it nothing draws on Windows 10 at all). Diag build,VICTORY_LOG=info. Menus draw at ~30 fps with 0 root signatures refused, then the process dies inamdxc64.dll(the driver's DXIL compiler) while a pipeline is being created.Same address seen before, upstream: the exact same fault (
amdxc64.dll+0x85fd0f, read 0x8) ended a world run of mine on upstreamd2a4baewith a stack of shader PRs, wherevictory translate --validateshowed ~1,200 translated programs that fail DXIL validation (upstream Marvisak/VIctory#298 together with Marvisak/VIctory#136 or Marvisak/VIctory#437: ~600 compute programs failing "Entry function performs some operation that is incompatible with the shader stage"; Marvisak/VIctory#305: 524 failing "Flags must match usage"). VIctory doesn't validate at run time, so those go to the driver. My guess is the same here: some program this tree emits fails validation and AMD's compiler doesn't cope (NVIDIA's apparently does; the README's results are on an RTX 4070). I haven't yet runvictory translate --validateon this tree to name which ones; happy to.No game data in this issue.
AI-assisted (Claude Code); I ran this on my machine.
@Arvi23 on GitHub · 2026-11-25 01:10 UTC · original
This may be the known pass-4 crash (#120, #145), shifted by your older driver. One run with
VICTORY_SHADER_OPT=59would tell.Same card here (RX 9070 XT), Windows 10 (IoT Enterprise LTSC 21H2, 19044), driver 32.0.32029.2010. That driver crashes in
amdxc64.dllat+0x861b9f, read 0x8. You are on 32.0.32015.7029 and see+0x85fd0f, read 0x8. A module offset only holds for one driver build, so this could be the same fault.What is known about
+0x861b9f:REUSE, bit 4 ofVICTORY_SHADER_OPT). One resource handle (createHandleFromHeap/annotateHandle) gets reused across most of a big program, and AMD's Windows compiler faults on that. Bisected on #120 and #145 on two RDNA4 cards, and RADV builds the same programs.VICTORY_SHADER_OPT=59(every pass but 4) avoids it. A patch that keeps only handles within their block is on #120 and keeps the rest of the pass. 66 of the 68 pass-4 programs build with it. The other 2 (a567b9ef845fb680,878933b499cfa14d) need pass 4 off.c1eee35dbc50a9ef,f16876929fa64f9f. Their cause is not known yet.So the quickest check on your machine: the same run with
VICTORY_SHADER_OPT=59, with a fresh cache and data folder (orearly-pipelines.txtdeleted). If+0x85fd0fgoes away, it is pass 4, and updating the driver would most likely show+0x861b9finstead. If it stays, it is something else.About your validation guess: invalid DXIL does crash this compiler. In XCL's direct DXIL path, 20 compute programs had irreducible control flow ("Execution flow must be reducible"), and amdxc64 read a null pointer on them instead of refusing them (xcl-dev/xcl#1426). VIctory splits irreducible flow in its IR (
split_irreducibleincrates/victory-shader/src/ir.rs), so that particular one should not reach the driver here. Other validator failures could. To name the program:early-pipelines.txtbefore it is made, though (thefafu on #120), so the newest entries there are the candidates. The next run also builds them early, which is also why a crash can come back sooner after one.VICTORY_TRANSLATE_ONLY=<hash> victory translate <pack> --validate --pipelines --jobs 1.For comparison, this tree gets through boot, the opening cutscene and into the prologue here with no compiler crash:
maina803c87+ #420 + the #120 patch + #51 + #203 (and #58, #411). In that run, 0 shaders were untranslated and 0 pipelines refused. An earlier run on31714dewith the same fixes (#420's first commit in its upstream form) gave the same.AI use: Claude Code (Claude Opus 5.5) compared the reports and wrote this; the runs are on my machine.
@kaayzouee on GitHub · 2026-11-25 01:58 UTC · original
Possible overlap with #120 / #145 — confirmation requested.
The crash may be the known REUSE/pass-4 compiler failure, with the offset shifted by your older AMD driver. Could you repeat the same run with VICTORY_SHADER_OPT=59 and a fresh cache/data directory, and report whether the crash persists? If possible, provide the failing shader hash and driver version.
This is an automated message. This issue should remain open pending confirmation. If you believe the overlap is incorrect, please reply with the relevant technical differences.
@HAL9000RELOADED on GitHub · 2026-11-25 21:17 UTC · original
The same driver build and the same Windows 10 as this report, on the previous GPU generation: on RDNA3, AMD's compiler builds every one of these pipelines.
Setup: Radeon RX 7900 XTX (RDNA3), Adrenalin 32.0.32015.7029 (the build above), Windows 10 22H2 19045, i7-13700KF. fxceless
maind510ee4+ #402 (Agility 1.620.2).VICTORY_SHADER_OPTwas unset, so every clean-up pass ran, REUSE included;bitcode/opt.rshasn't changed since31714de.The whole pack:
victory translate --validate --pipelinesover the title'sshaders.rpftranslated 26,084 programs and emitted 25,636 of them. All 25,636 host pipelines were created: 0 refused and no crash inamdxc64.dll(534 s). The 448 programs not emitted were refused by the translator, which doesn't depend on the GPU.The programs named in the AMD compiler-crash reports were all validated and created here:
cad3ecfdcdcf2a7d)That is 99 distinct programs. With the same driver build the crash doesn't happen on RDNA3. That points at the driver's RDNA4 back end rather than at something the translator emits for every AMD card. From here I can't tell whether these programs still crash on RDNA4 at
d510ee4.The game ran on the same tree too: boot, first-boot screens, loading and the first minutes in the world, with up to ~700 pipelines building at once, without a crash or a device removal.