AMD: the driver's shader compiler crashes (amdxc64.dll+0x85fd0f) during the first-boot screens #422

Open
opened 2026-11-26 03:43:03 +00:00 by github-bot · 3 comments
Owner

@⁠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:

VIctory: unhandled exception 0xc0000005 at amdxc64.dll+0x85fd0f (read 0x8: nothing mapped there)
  #0 amdxc64.dll+0x85fd0f  #1 +0x95602a  #2 +0x9575c6  #3 +0x955984  #4 +0x862ecd ...

Setup: Windows 10 22H2 19045.7846, AMD RX 9070 XT, Adrenalin driver 32.0.32015.7029, Ryzen 9 9900X. main 31714de plus #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 in amdxc64.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 upstream d2a4bae with a stack of shader PRs, where victory translate --validate showed ~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 run victory translate --validate on this tree to name which ones; happy to.

No game data in this issue.

AI-assisted (Claude Code); I ran this on my machine.

**@⁠GamingRipperDoc** on GitHub · 2026-11-25 00:36 UTC · [original](https://github.com/fxceless/victory-fork/issues/422) 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: ``` VIctory: unhandled exception 0xc0000005 at amdxc64.dll+0x85fd0f (read 0x8: nothing mapped there) #0 amdxc64.dll+0x85fd0f #1 +0x95602a #2 +0x9575c6 #3 +0x955984 #4 +0x862ecd ... ``` **Setup:** Windows 10 22H2 19045.7846, AMD RX 9070 XT, Adrenalin driver 32.0.32015.7029, Ryzen 9 9900X. `main` `31714de` plus #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 in `amdxc64.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 upstream `d2a4bae` with a stack of shader PRs, where `victory translate --validate` showed ~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 run `victory translate --validate` on this tree to name which ones; happy to. No game data in this issue. AI-assisted (Claude Code); I ran this on my machine.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:43:03 +00:00
Author
Owner

@⁠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=59 would tell.

Same card here (RX 9070 XT), Windows 10 (IoT Enterprise LTSC 21H2, 19044), driver 32.0.32029.2010. That driver crashes in amdxc64.dll at +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:

  • It is clean-up pass 4 (REUSE, bit 4 of VICTORY_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.
  • Two programs crash at the same offset with every pass 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 (or early-pipelines.txt deleted). If +0x85fd0f goes away, it is pass 4, and updating the driver would most likely show +0x861b9f instead. 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_irreducible in crates/victory-shader/src/ir.rs), so that particular one should not reach the driver here. Other validator failures could. To name the program:

  • The crash report does not say which pipeline was being made. A pipeline is written to early-pipelines.txt before 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.
  • One process per program, so a crash ends only that process: 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: main a803c87 + #420 + the #120 patch + #51 + #203 (and #58, #411). In that run, 0 shaders were untranslated and 0 pipelines refused. An earlier run on 31714de with 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.

**@⁠Arvi23** on GitHub · 2026-11-25 01:10 UTC · [original](https://github.com/fxceless/victory-fork/issues/422#issuecomment-7149281885) **This may be the known pass-4 crash (#120, #145), shifted by your older driver. One run with `VICTORY_SHADER_OPT=59` would tell.** Same card here (RX 9070 XT), Windows 10 (IoT Enterprise LTSC 21H2, 19044), driver **32.0.32029.2010**. That driver crashes in `amdxc64.dll` at **`+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`: - It is clean-up pass 4 (`REUSE`, bit 4 of `VICTORY_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. - Two programs crash at the same offset with every pass 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 (or `early-pipelines.txt` deleted). If `+0x85fd0f` goes away, it is pass 4, and updating the driver would most likely show `+0x861b9f` instead. 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_irreducible` in `crates/victory-shader/src/ir.rs`), so that particular one should not reach the driver here. Other validator failures could. To name the program: - The crash report does not say which pipeline was being made. A pipeline is written to `early-pipelines.txt` before 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. - One process per program, so a crash ends only that process: `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: `main` `a803c87` + #420 + the #120 patch + #51 + #203 (and #58, #411). In that run, 0 shaders were untranslated and 0 pipelines refused. An earlier run on `31714de` with 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.
Author
Owner

@⁠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.

**@⁠kaayzouee** on GitHub · 2026-11-25 01:58 UTC · [original](https://github.com/fxceless/victory-fork/issues/422#issuecomment-7150165050) 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.
Author
Owner

@⁠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 main d510ee4 + #402 (Agility 1.620.2). VICTORY_SHADER_OPT was unset, so every clean-up pass ran, REUSE included; bitcode/opt.rs hasn't changed since 31714de.

The whole pack: victory translate --validate --pipelines over the title's shaders.rpf translated 26,084 programs and emitted 25,636 of them. All 25,636 host pipelines were created: 0 refused and no crash in amdxc64.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:

issue card in the report programs named created here
#422 RX 9070 XT, 32.0.32015.7029, Win10 4 4/4
#120 RX 9070 XT 24 24/24
#145 RX 9070 XT 78 78/78
#505 RX 9070 2 2/2
#900 RX 9070 XT, 32.0.31044.16 8 (incl. cad3ecfdcdcf2a7d) 8/8

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.

**@⁠HAL9000RELOADED** on GitHub · 2026-11-25 21:17 UTC · [original](https://github.com/fxceless/victory-fork/issues/422#issuecomment-7174881591) 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 `main` `d510ee4` + #402 (Agility 1.620.2). `VICTORY_SHADER_OPT` was unset, so every clean-up pass ran, REUSE included; `bitcode/opt.rs` hasn't changed since `31714de`. **The whole pack:** `victory translate --validate --pipelines` over the title's `shaders.rpf` translated 26,084 programs and emitted 25,636 of them. **All 25,636 host pipelines were created: 0 refused and no crash in `amdxc64.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: | issue | card in the report | programs named | created here | |---|---|---|---| | #422 | RX 9070 XT, 32.0.32015.7029, Win10 | 4 | 4/4 | | #120 | RX 9070 XT | 24 | 24/24 | | #145 | RX 9070 XT | 78 | 78/78 | | #505 | RX 9070 | 2 | 2/2 | | #900 | RX 9070 XT, 32.0.31044.16 | 8 (incl. `cad3ecfdcdcf2a7d`) | 8/8 | 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.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#422
No description provided.