Repository navigation
Description
On my RX 9070 XT, every 60 s scripts/smoke.ps1 run of the retail title (title: 21222967) on current main ends at 42–47 s with an access violation inside AMD's shader compiler. I bisected it to #3243 (56dccf7b, "route every shader stage through direct DXIL by default"). With XCL_DIRECT_DXIL=1 (compute only, the old opt-in), the same build runs the full 60 s. #3243 was tested on NVIDIA only, so this looks like the vertex/pixel side of the direct DXIL path on AMD. @Foniass
Crash (the same in all 10 crashing runs):
unhandled exception 0xc0000005 in amdxc64.dll+0x735dd8 (read at address 0x0)
on the stack: amdxc64.dll+0x903444, amdxc64.dll+0x72ccad, amdxc64.dll+0x743aa3, amdxc64.dll+0x593cfc8, amdxc64.dll+0x6757b3, amdxc64.dll+0x593cfc8
It happens on a title thread about 70 ms after it creates two root signatures (420 B and 316 B, DXBC). The log doesn't name the pipeline being built at that moment, and the crash record has only driver frames. No device removal, and my GPU guard saw nothing at system level.
Bisect (git bisect --first-parent, one guarded 60 s smoke run per step, release builds):
| commit | result |
|---|---|
06055a7 (11-25), e120925e, 10373744, 227d2cb3, 851bf7f9 |
60 s clean, 1634–1686 frames |
56dccf7b (#3243) and every later merge tested: cad0164a, 28bda920, c18a3b8d, da421e0d, abec7ce9 |
crash at 42–44 s, same address |
851bf7f9 (#612) is the merge right before #3243 on main's first-parent line.
On current main ff0c364b:
| setting | result |
|---|---|
| default | crash at 42.9 s |
default + XCL_COHERENT_MB=512 |
crash at 46.7 s (so not the coherent window) |
XCL_DIRECT_DXIL=1 |
60 s clean, 1684 frames |
Default:
xcl-smoke v1
commit: ff0c364b3de011c13ed45865480c21918a79ec89
gpu: AMD Radeon RX 9070 XT
title: 21222967
seconds: 60
exit: 0xc0000005
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 60 59 61
device removals: 0
crashes: 2
peak commit: 17929 MB
With XCL_DIRECT_DXIL=1:
xcl-smoke v1
commit: ff0c364b3de011c13ed45865480c21918a79ec89
gpu: AMD Radeon RX 9070 XT
title: 21222967
seconds: 60
exit: 0x0
frames shown: 1684 (PresentX 1684)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 25737 MB
Why it matters beyond this title: any PR's AMD smoke run on current main dies here before 60 s, so both blocks show frames shown: none logged. I found this because my own PR's regression run couldn't produce a usable pair.
Setup: AMD Radeon RX 9070 XT 16 GB, driver 32.0.32015.2008, Ryzen 7 9800X3D, 31 GB RAM, Windows 11 25H2 build 26200.9974, rustc 1.100.1, release builds. smoke.ps1's own settings (XCL_PREPARE=0, XCL_NETWORK=0), plus XCL_PRESS_A_AT=20,25,30 and XCL_WINDOW_POS (window placement only). Page files fixed so free commit is over 17.4 GB (4,095 MB coherent window).
Not tested: other AMD GPUs (RDNA2/RDNA3), newer AMD drivers (mine is older than the 32.0.32029 others in #2996 use), other titles, and which shader triggers it. If it helps, I can run a build that logs the pipeline before each driver create, or test a fix.
AI use: Claude Code (Claude Opus 5.5) wrote the bisect script, ran the guarded bisect and the A/B runs, read the logs and drafted this issue. I checked it before posting.
Activity
Chrysana commentedon Nov 30, 2026
RDNA2 too. I ran the same title on the same PC's RDNA 2 iGPU (9800X3D, gfx1036, driver 32.0.21045.11001). It has its own build of the compiler:
amdxc64.dll8.18.10.0500, where the RX 9070 XT's is 8.18.10.0514. Currentmainff0c364b,XCL_ADAPTER=1, 120 s smoke run:0xc0000005 in amdxc64.dll+0x671d88 (read at address 0x0)XCL_DIRECT_DXIL=1In the default run, the crash comes right after the title thread creates the same root signature,
aed4a2841022bca7(420 B), as in every crash on the RX 9070 XT. In theXCL_DIRECT_DXIL=1run, the title creates that root signature at 49.5 s and carries on without a compiler crash. So the crash isn't RDNA4-only, and an older compiler build hits it too. That points at what the direct DXIL path gives AMD's compiler for that pipeline, rather than at one driver.The
XCL_DIRECT_DXIL=1iGPU run did end early, though, with a device removal at 88.7 s (0x887a0005on aCreatePlacedResourceX, then0x887a0007). My GPU guard stopped it there. I take that to be the 2-CU iGPU (485 MiB of its own memory) not coping with the title, not this bug, but I haven't checked further. The RX 9070 XT ran 60 s clean with the same setting.Also a correction to my setup line: the PC has 32 GB of RAM (Windows shows 31 GB usable).
AI use: Claude Code (Claude Opus 5.5) ran the guarded iGPU runs, read the logs and drafted this comment. I checked it before posting.
ivall commentedon Nov 30, 2026
Hi, for AMD use amd-dev branch for now.
Chrysana commentedon Nov 30, 2026
Thanks, will do. One thing for when
mainnext goes intoamd-dev:amd-dev(6bab0c53) doesn't contain #3243 yet. Its last merge frommainwas on 11-27, and #3243 landed after that. So that merge would bring this crash along unless it's fixed by then oramd-devsetsXCL_DIRECT_DXIL=1.Recompiler: (testbed) apply open PR xcl-dev#3455 (4dd1796) for the RX…
Chrysana commentedon Dec 1, 2026
#3455 fixes this on both GPUs here. Following bobosneefdev's lead, I reran
mainwithXCL_PSO_TRACE=1, which names the pipeline behind each driver compile. AMD's compiler crashes while building the graphics pipeline of pixel shader record7381166e806847c9, the one #3455 is about. With #3455 (4dd1796f) merged on the samemain, that pipeline compiles and the run goes on.maind0832e61against the trial merge1df769bb(main+4dd1796f, clean merge,git diff --checkclean). DefaultXCL_DIRECT_DXIL,XCL_PSO_TRACE=1, retail title:mainmain+ #3455amdxc64.dll+0x735dd8(read at address 0x0), 95 ms afterdriver compile start #2182: graphics PSO, 70024 B DXIL, record 7381166e806847c9on the same thread; that compile never finishes7381166e806847c9compiles in 561 ms (70,444 B DXIL) at 43.1 s; the run ends by itself at 90 s, 2159 frames, no crashamdxc64.dll+0x671d88(read at address 0x0), 108 ms after the same record'sdriver compile start(70,024 B DXIL)7381166e806847c9compiles in 383 ms at 43.8 s. At 89.8 s the device was removed on aCreatePlacedResourceX(0x887a0005); my GPU guard stopped the run there. That's the same failure at the same point as myXCL_DIRECT_DXIL=1iGPU run above (88.7 s), which I take to be the 2-CU iGPU (485 MiB of its own memory), not this bug.So the 420 B root signature I pointed at earlier is only what the title thread creates just before that pipeline build. It isn't the cause. #3455's explanation fits both compiler builds (
amdxc64.dll8.18.10.0514 on the RX 9070 XT, 8.18.10.0500 on the iGPU):quadOpon values derived fromWaveReadLaneAtin the pixel shader's carry ballot, the driver bug #134 already works around. Here the title reaches that pipeline at 43–48 s, without going into the world.RX 9070 XT runs:
Hardware: AMD Radeon RX 9070 XT 16 GB (driver 32.0.32015.2008) and the Ryzen 7 9800X3D's Radeon iGPU (gfx1036, driver 32.0.21045.11001), 32 GB RAM, Windows 11 25H2 build 26200, release builds.
XCL_PREPARE=0(smoke.ps1's default), network off, A presses at 20/25/30 s. Until #3455 is inmain,XCL_DIRECT_DXIL=1still avoids the crash on AMD.AI use: Claude Code (Claude Opus 5.5) built both trees, ran the guarded runs, read the logs and drafted this comment. I checked it before posting.