Skip to content

Since #3243, AMD's shader compiler crashes (amdxc64.dll, null read) ~43 s into the retail title on an RX 9070 XT; XCL_DIRECT_DXIL=1 avoids it #3544

Backlog

Description

@Chrysana

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

  1. Chrysana commented on Nov 30, 2026

    @Chrysana
    Author

    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.dll 8.18.10.0500, where the RX 9070 XT's is 8.18.10.0514. Current main ff0c364b, XCL_ADAPTER=1, 120 s smoke run:

    setting result
    default crash at 48.5 s: 0xc0000005 in amdxc64.dll+0x671d88 (read at address 0x0)
    XCL_DIRECT_DXIL=1 passes that point (see below)

    In 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 the XCL_DIRECT_DXIL=1 run, 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=1 iGPU run did end early, though, with a device removal at 88.7 s (0x887a0005 on a CreatePlacedResourceX, then 0x887a0007). 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.

  2. ivall commented on Nov 30, 2026

    @ivall
    Collaborator

    Hi, for AMD use amd-dev branch for now.

  3. Chrysana commented on Nov 30, 2026

    @Chrysana
    Author

    Thanks, will do. One thing for when main next goes into amd-dev: amd-dev (6bab0c53) doesn't contain #3243 yet. Its last merge from main was on 11-27, and #3243 landed after that. So that merge would bring this crash along unless it's fixed by then or amd-dev sets XCL_DIRECT_DXIL=1.

  4. added a commit that references this issue on Dec 1, 2026
  5. Chrysana commented on Dec 1, 2026

    @Chrysana
    Author

    #3455 fixes this on both GPUs here. Following bobosneefdev's lead, I reran main with XCL_PSO_TRACE=1, which names the pipeline behind each driver compile. AMD's compiler crashes while building the graphics pipeline of pixel shader record 7381166e806847c9, the one #3455 is about. With #3455 (4dd1796f) merged on the same main, that pipeline compiles and the run goes on.

    main d0832e61 against the trial merge 1df769bb (main + 4dd1796f, clean merge, git diff --check clean). Default XCL_DIRECT_DXIL, XCL_PSO_TRACE=1, retail title:

    GPU main main + #3455
    RX 9070 XT (RDNA4), 90 s crash at 48.1 s: amdxc64.dll+0x735dd8 (read at address 0x0), 95 ms after driver compile start #2182: graphics PSO, 70024 B DXIL, record 7381166e806847c9 on the same thread; that compile never finishes 7381166e806847c9 compiles in 561 ms (70,444 B DXIL) at 43.1 s; the run ends by itself at 90 s, 2159 frames, no crash
    9800X3D iGPU (RDNA2), 120 s crash at 47.6 s: amdxc64.dll+0x671d88 (read at address 0x0), 108 ms after the same record's driver compile start (70,024 B DXIL) 7381166e806847c9 compiles in 383 ms at 43.8 s. At 89.8 s the device was removed on a CreatePlacedResourceX (0x887a0005); my GPU guard stopped the run there. That's the same failure at the same point as my XCL_DIRECT_DXIL=1 iGPU 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.dll 8.18.10.0514 on the RX 9070 XT, 8.18.10.0500 on the iGPU): quadOp on values derived from WaveReadLaneAt in 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:

    xcl-smoke v1
    commit: d0832e614fa7d6ae027bb4feb27ccb9121f54a8f
    gpu: AMD Radeon RX 9070 XT
    title: 21222967
    seconds: 90
    exit: 0xc0000005
    frames shown: none logged (the run did not reach its end)
    presents per 2 s (last 3): 60 60 60
    device removals: 0
    crashes: 2
    peak commit: 17508 MB
    
    xcl-smoke v1
    commit: 1df769bb3c9607491ae2e018ed46881b1dcfbe3a
    gpu: AMD Radeon RX 9070 XT
    title: 21222967
    seconds: 90
    exit: 0x0
    frames shown: 2159 (PresentX 2159)
    presents per 2 s (last 3): 20 12 21
    device removals: 0
    crashes: 0
    peak commit: 26532 MB
    

    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 in main, XCL_DIRECT_DXIL=1 still 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions