Recompiler: since #3655, split-wave64 compute pipelines crash amdxc64.dll on an RX 9070 XT – a retail game exits 1.5 s after start, and the test suite aborts #3694
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 Chrysana on 2026-12-02T14:41:32Z.
Since #3655 was merged (
d71578f8), compute pipelines from the split wave64 path with more than 32 threads per group fail in AMD's shader compiler duringCreateComputePipelineState. On an RX 9070 XT (RDNA4) the process dies:amdxc64.dllhits a fast-fail (0xc0000409,FAST_FAIL_GUARD_JUMPTABLE). On an RDNA2 iGPU,CreateComputePipelineStatereturns0x887A0005(device removed). It reproduces every time.On
main5eaadb54a retail game no longer starts on the RX 9070 XT. It exits with0xc00004091.5 s after launch, while compiling one of its first compute pipelines, before the first frame.mainjust before #3655 (df0cfef6) runs it normally.It also stops the test suite partway on AMD:
gpu::dxil::idioms::tests::gpu_split_wave64_local_votes_leave_what_the_exchange_leaves, a test #3655 added (from #3563,e45179da). No message, noFAILEDline, and every test after it never runs: 138 passed in the whole suite run instead of ~2,900.gpu_compute_e2eloses 3 tests:console_wave64_compute_through_the_pso_hook_dispatch_and_read_backcrashes the same way.offline_compute_pipeline_is_reused_by_a_second_processandsynchronous_compute_manifest_records_first_bindfail their asserts, because their child process stops right after starting its driver compile (the tests don't record its exit code).Before and after #3655. I built
gpu_compute_e2eat both commits and ran each test in its own process on the RX 9070 XT:df0cfef6(main before #3655)d71578f8(#3655 merged)console_wave64_compute_through_the_pso_hook_dispatch_and_read_back0xc0000409offline_compute_pipeline_is_reused_by_a_second_processsynchronous_compute_manifest_records_first_bindAll three also passed in a whole-suite run on
mainb2b1f109yesterday.Which shaders. I ran the new test one case per process: thread counts 32, 48, 64 and 128, each with the local-vote idiom on and off. The DXIL is translated without errors; the failure is in the driver compile.
The iGPU column was the same in two runs. So it isn't the new idiom: once a group has more than one 32-lane half, every one of these shaders crashes the RDNA4 compiler, and some of them make the RDNA2 driver remove the device.
Where it crashes (RX 9070 XT, under
cdb). Both the unit test (throughrunner::dispatch) and the e2e test (throughd3d12x::real::compute_container→driver_pso) stop at the same place:FAST_FAIL_GUARD_JUMPTABLEmeans a guardedswitchjump table got a value out of range, so it looks like the compiler meeting a DXIL construct it doesn't expect. That makes it a driver bug, but #3655's DXIL is what reaches it, and the driver isn't likely to change soon. I have the 8 DXIL files (2.7–3.5 KB each, XCL's own test shader, no game data) and can attach them as a zip.Game run.
scripts/smoke.ps1, 40 s, release builds, default settings,XCL_PSO_TRACE=1, RX 9070 XT. 40 s keeps clear of the separate crash in #3544, which comes at 42–48 s on this GPU.Two runs of
5eaadb54died the same way. In both, the only driver compile that never finished was compute record73ffa0b705ae2cc0, at 1.5 s (compile #5 in one run, #6 in the other):On
df0cfef6the same record compiles (15,144 B of DXIL there, so #3655 changed its translation). The blocks saycrashes: 0because a fast-fail ends the process without passing through XCL's crash handler.Hardware.
amdxc64.dll8.18.10.0514)XCL_ADAPTER=1Not checked: a debugger on the game run (the record is named by the trace only), which of #3655's 16 commits brings in the failing construct (the test only exists from #3655 on, and the e2e tests pass on
df0cfef6and fail ond71578f8), other AMD GPUs, and NVIDIA (the tests passed there in #3655's runs). cc @Kalmarv @RoyalflamejlhAI use: Claude Code (Claude Opus 5.5) ran the tests, the per-case runs and the debugger, and drafted this issue.
Imported from ivall/xcl. Originally posted by ArtuArtaza on 2026-12-02T15:43:49Z.
Same on a discrete RDNA2 card, where it shows as a device removal rather than a fast-fail.
Game run. RX 6700 XT,
scripts/smoke.ps1, 60 s, release builds,XCL_DEVICE_TYPE=lockhart,XCL_PREPARE=0, A pressed at 30 s and 45 s (XCL_PRESS_A_AT=30,45), one run per commit. Ond71578f8and5eaadb54the driver rejects one of the title's first compute pipelines 2.4 s after start (the driver rejected the compute PSO with the translated CS (0x887a0005)), and the device is removed (0x887a0020) before the first frame.df0cfef6runs normally. These runs had noXCL_PSO_TRACE, so they do not name the record.Tests, same card, debug builds of
5eaadb54:gpu::dxil::idioms(2) andgpu::dxil::mask_exchange(9) fails atCreateComputePipelineStatewith0x887A0005, also with--test-threads=1.0x80004005without a summary.gpu_compute_e2e, one test per process:console_wave64_compute_through_the_pso_hook_dispatch_and_read_backandsynchronous_compute_manifest_records_first_bindfail;offline_compute_pipeline_is_reused_by_a_second_processpasses on this card.Until this is fixed no PR can get a passing smoke pair on AMD: I hit it redoing #3455's after rebasing it onto
5eaadb54.Hardware: AMD Radeon RX 6700 XT, driver 32.0.21045.29003; Ryzen 5 5600X, 48 GB, Windows 11 26200.
AI use: Claude Code (Claude Opus 5.5) ran the builds, tests and game runs and drafted this comment.
Imported from ivall/xcl. Originally posted by Chrysana on 2026-12-03T15:23:32Z.
Fixed on
mainby #3707: rechecked onmaina815de93(the #3707 merge) on both AMD GPUs here, and the cases from this report all pass now. Closing.Setup: RX 9070 XT (driver 32.0.32015.2008) and the Ryzen 7 9800X3D's RDNA2 iGPU (
XCL_ADAPTER=1), 32 GB RAM, Windows 11 26200. Debug build for the tests, release for the game, owntarget\each.gpu_split_wave64_local_votes_leave_what_the_exchange_leaves, run alone, 2 of 2 passes on each GPU. Before the fix it ended the lib binary with0xc0000409on the 9070 XT and removed the device on the iGPU.gpu_split_wave64_uniform_first_lanes_read_what_the_exchange_readsalso passes 2 of 2 on each.gpu_compute_e2e: 9 passed, 0 failed (it ended with0xc0000409before). The 3 cases named in the report (console_wave64_compute_through_the_pso_hook_dispatch_and_read_back,offline_compute_pipeline_is_reused_by_a_second_process,synchronous_compute_manifest_records_first_bind) pass 2 of 2 on each GPU when run alone. On the iGPU,console_wave64now reads the right value (before #3707 it read 0, not 4096).--test-threads=4, 2 runs, the same result each time). The 7 are the AMD failures this card had before #3655 (fuzz_validate_and_gpu_1/_3,gpu_smem_flat_descriptor_windows_and_limits,f32_programs_on_the_gpu,gpu_f32_compares_with_nan,gpu_float_compares_random,gpu_ps_readfirstlane_loop_on_a_primitive_edge_ends). #3707's 4 IR tests pass.73ffa0b705ae2cc0, which never finished its driver compile before the fix, now compiles in under 1 ms at ~1.5–1.9 s. Three 40 s runs, all clean. The runs stop at 40 s because #3544 still crashes at 42–48 s on this card until #3455 lands.9070 XT, run 1:
9070 XT, run 2:
RDNA2 iGPU:
Side note, not this bug: in the first of 3 lib runs, the binary aborted (
0xc0000409) near the end inshaders::pipeline_cap_tests::stale_blob_cannot_bypass_the_offline_pipeline_cap.vram::drain_recycledfoundPAGESpoisoned, called fromreal::res_release, which can't unwind. A test running alongside had panicked while holding that lock, and the log doesn't name which one. The 2 reruns didn't hit it.AI use: Claude Code (Claude Opus 5.5) ran the tests and the game runs, and drafted this comment.