Recompiler: DXC 1.9's GVN makes a pixel shader that crashes AMD's compiler (amdxc64.dll+0x790849, RX 6750 XT) #3732
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?
Imported from ivall/xcl. Originally posted by RodrigoTorreao on 2026-12-02T21:06:05Z.
Game and package version: a retail title, package
RockstarGamesInc.28872443D20A7(smoketitle: 2a4aef2e)XCL version:
main817eb1fcminus 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: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=1made 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: set617c0400bbf93821, MSdffede69b0af0095, PS3b5e15ae94923f23.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:
-O1(XCL default for > 1 MB)-O1 -opt-disable gvn-O0-O1None of these stop the crash:
licm,sink,structurize-returns,lifetime-intrinsics,structurize-loop-exits-for-unroll);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.