Recompiler: DXC 1.9's GVN makes a pixel shader that crashes AMD's compiler (amdxc64.dll+0x790849, RX 6750 XT) #3732

Open
opened 2026-12-02 21:06:05 +00:00 by RodrigoTorreao · 0 comments
RodrigoTorreao commented 2026-12-02 21:06:05 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by RodrigoTorreao on 2026-12-02T21:06:05Z.


Game and package version: a retail title, package RockstarGamesInc.28872443D20A7 (smoke title: 2a4aef2e)

XCL version: main 817eb1fc minus the #3655 merge (it breaks this GPU, #3694), plus #3455 (without it the title crashes earlier, #3544). Local commit 38d402d5, release build, DXC 1.9.2609.5 (XCL_DXC_DIR).

GPU and driver: AMD Radeon RX 6750 XT 12 GB (RDNA2), Adrenalin 32.0.21045.29003. CPU i5-14600KF, 16 GB RAM.

Windows: Windows 11 (10.0.26200).

What happens

Once the title renders in game, a title thread that builds a two-pass mesh pipeline crashes inside AMD's shader compiler during CreatePipelineState, and the process ends:

unhandled exception 0xc0000005 in amdxc64.dll+0x790849 (read at address 0x8)
on the stack: amdxc64.dll+0x86fb50, +0x8803cf, +0x881402, +0x87fd91, +0x79375c

It happened in 2 of 2 runs, at 164 s and at 92 s. Both times it was the same pipeline, and XCL_RESIDENCY_PRIORITY=1 made no difference. VRAM was under budget.

Which pipeline and why

I replayed the run's graphics pipeline history (used-graphics-pipelines-lockhart.bin) offline, one record at a time. Exactly one record crashes the driver. It is a two-pass mesh pipeline: set 617c0400bbf93821, MS dffede69b0af0095, PS 3b5e15ae94923f23.

  • The pass-through MS is not the cause: putting another title's MS in its place still crashes.
  • The PS is the cause. It takes the HLSL fallback (graphics v_writelane spill needs the HLSL path) with 1.66 MB of HLSL, so DXC compiles it at -O1.

Same HLSL source, same driver, results by compiler and flags:

DXC flags DXIL driver
1.9.2609.5 -O1 (XCL default for > 1 MB) 509 KB crash 0x790849
1.9.2609.5 -O1 -opt-disable gvn 696 KB builds
1.9.2609.5 -O0 985 KB builds
1.7 (Windows SDK) -O1 689 KB builds

None of these stop the crash:

  • disabling other DXC passes one at a time (licm, sink, structurize-returns, lifetime-intrinsics, structurize-loop-exits-for-unroll);
  • HLSL variants without the quad reads, without the wave reads, or without the loop and unroll attributes.

So the crash comes from what DXC 1.9's GVN does to this one shader. Before 1.9, this machine fell back to the SDK's DXC 1.7, which explains why it did not show up earlier.

#1398 retries compute PSOs without GVN when the driver refuses them. Here the driver crashes the process, so a retry after the fact cannot help. The DXIL has to be made without GVN in the first place.

Proposed fix: compile ps_* profiles with -opt-disable gvn. Pixel shaders reach DXC only on the HLSL fallback path, so this costs a few larger fallbacks. The DXIL cache key and the translated-cache file name for pixel shaders change, so DXIL cached before the change is not reused. PR to follow.

report.json and xcl.log: not attached (they hold local paths); the crash line is above, and I can share the relevant log parts on request.


AI use: the investigation (offline replay, flag bisection) and this report were done with Claude Code (Claude Opus 5.5). The runs are real, on the hardware above.

<!-- greyfinch-sync:ivall/xcl:issue:6754525692 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3732). Originally posted by [RodrigoTorreao](https://github.com/RodrigoTorreao) on 2026-12-02T21:06:05Z. --- **Game and package version:** a retail title, package `RockstarGamesInc.28872443D20A7` (smoke `title: 2a4aef2e`) **XCL version:** `main` 817eb1fc minus the #3655 merge (it breaks this GPU, #3694), plus #3455 (without it the title crashes earlier, #3544). Local commit 38d402d5, release build, DXC 1.9.2609.5 (`XCL_DXC_DIR`). **GPU and driver:** AMD Radeon RX 6750 XT 12 GB (RDNA2), Adrenalin 32.0.21045.29003. CPU i5-14600KF, 16 GB RAM. **Windows:** Windows 11 (10.0.26200). **What happens** Once the title renders in game, a title thread that builds a two-pass mesh pipeline crashes inside AMD's shader compiler during `CreatePipelineState`, and the process ends: ``` unhandled exception 0xc0000005 in amdxc64.dll+0x790849 (read at address 0x8) on the stack: amdxc64.dll+0x86fb50, +0x8803cf, +0x881402, +0x87fd91, +0x79375c ``` It happened in 2 of 2 runs, at 164 s and at 92 s. Both times it was the same pipeline, and `XCL_RESIDENCY_PRIORITY=1` made no difference. VRAM was under budget. **Which pipeline and why** I replayed the run's graphics pipeline history (`used-graphics-pipelines-lockhart.bin`) offline, one record at a time. Exactly one record crashes the driver. It is a two-pass mesh pipeline: set `617c0400bbf93821`, MS `dffede69b0af0095`, PS `3b5e15ae94923f23`. - The pass-through MS is not the cause: putting another title's MS in its place still crashes. - The PS is the cause. It takes the HLSL fallback (`graphics v_writelane spill needs the HLSL path`) with 1.66 MB of HLSL, so DXC compiles it at `-O1`. Same HLSL source, same driver, results by compiler and flags: | DXC | flags | DXIL | driver | |---|---|---|---| | 1.9.2609.5 | `-O1` (XCL default for > 1 MB) | 509 KB | **crash** 0x790849 | | 1.9.2609.5 | `-O1 -opt-disable gvn` | 696 KB | builds | | 1.9.2609.5 | `-O0` | 985 KB | builds | | 1.7 (Windows SDK) | `-O1` | 689 KB | builds | None of these stop the crash: - disabling other DXC passes one at a time (`licm`, `sink`, `structurize-returns`, `lifetime-intrinsics`, `structurize-loop-exits-for-unroll`); - HLSL variants without the quad reads, without the wave reads, or without the loop and unroll attributes. So the crash comes from what DXC 1.9's GVN does to this one shader. Before 1.9, this machine fell back to the SDK's DXC 1.7, which explains why it did not show up earlier. #1398 retries compute PSOs without GVN when the driver *refuses* them. Here the driver *crashes* the process, so a retry after the fact cannot help. The DXIL has to be made without GVN in the first place. **Proposed fix:** compile `ps_*` profiles with `-opt-disable gvn`. Pixel shaders reach DXC only on the HLSL fallback path, so this costs a few larger fallbacks. The DXIL cache key and the translated-cache file name for pixel shaders change, so DXIL cached before the change is not reused. PR to follow. **report.json and xcl.log:** not attached (they hold local paths); the crash line is above, and I can share the relevant log parts on request. --- AI use: the investigation (offline replay, flag bisection) and this report were done with Claude Code (Claude Opus 5.5). The runs are real, on the hardware above.
Sign in to join this conversation.
No labels
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.

Reference
xcl-dev/xcl#3732
No description provided.