[ERROR] Shader preparation failed #3070
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 hellomynameisnone on 2026-11-27T20:05:42Z.
s
Imported from ivall/xcl. Originally posted by hellomynameisnone on 2026-11-27T22:38:18Z.
Update: I patched shaders.rs (make_one) so the two
Err(_)branches that bumprefusedprint the error. The refused pipeline during shader preparation is:REFUSED pipeline key 91eef70f93e47049, 73320 B DXIL, chained false,
error HRESULT(0x8007000E) "Not enough memory resources are available
to complete this operation."
XCL_PIPELINE_THREADS=2. 2688 other pipelines are created fine.
the AS slot - refused" lines, same hashes as in report.prev.json).
two places in make_one), so the stop message says nothing useful. Logging
the HRESULT and the key would help, and maybe a refused pipeline should be
left to the runtime like the capped ones instead of aborting preparation.
RTX 5080, driver 616.56, Windows 11 26H2, XCL commit
6089122.Imported from ivall/xcl. Originally posted by snrubrm on 2026-11-28T00:03:38Z.
Same refused pipeline on an RTX 5070 Ti (driver 621.40): it is
weatherParticle:CS_BeginUpdate, refused because of the Blackwell driver bug #1919 works around, in a form #1919 does not coverI got the same key as @hellomynameisnone above (
91eef70f93e47049, 73,320 B,0x8007000E) onmainf9a0cb8, so it is the same DXIL on 616.56 and 621.40. The preparation ran 6 h 24 min on a cold cache (2,688 pipelines made, 1 refused) and stopped with exit code 2; a second start with everything cached stopped the same way after 32 s.Which program. Record
weatherParticle:CS_BeginUpdate_f7374ac1_Wrapped @0xf8f7507(record hashf377ca6830935314), a compute program that is not split, on the HLSL + DXC path.Why it is refused. It adds a negated value to LDS:
which XCL emits as
InterlockedAdd(xcl_lds[...], (0u - v1), ...). RTX 50 drivers refuse a group-shared atomic add of a negated non-constant value (the bug #1919 describes). Checked on the exported HLSL (xcl shaders --export-hlsl … --record-hash f377ca6830935314), compiled with DXC 1.9.2602.17 and built with XCL's ABI root signature:0x8007000Eds_add's value written as(v1 | WaveActiveBitOr(0u))(#1919's workaround): builtpc == 0, which sets up the registers that block reads; without either, it builds#1919 as it is would not fix this title: it changes only
ds_sub_u32, and here the title negates with av_suband then uses a plainds_add. I have described the gap on #1919.Tested
XCL_ADAPTER=nvidia); Windows 11 Pro 26300; rustc 1.100.0 MSVC; DXC 1.9.2602.17 (Windows SDK 10.0.26100); release build ofmainf9a0cb8CreateComputePipelineStateon the 5070 TiNot tested
XCL_DIRECT_DXIL=1); its LDSaddlowering also uses the value unchanged, so it is probably affected tooXCL_PREPARE=0on this machineClaude Code (Claude Opus 5.5) found the program, ran these tests and wrote this comment.
Imported from ivall/xcl. Originally posted by UncommonDLL on 2026-11-29T02:33:15Z.
We checked a synthetic
v_sub_nc_u32followed byds_add_rtn_u32on a host with an RTX 5070 Ti and driver 621.40, withXCL_ADAPTER=nvidia, at baseline6089122a1c96dff16e93b6fdf04c8ed20cfb6102with and without the #1919 patch.The HLSL path using DXC 1.9.2609.5 and the direct-DXIL path both dispatched and returned the expected old and final LDS values for all 64 lanes. In both disassemblies the group-shared
atomicrmw addtakes a runtimeselectbetween the negated value and the original. Applying #1919 left each shader byte-for-byte identical.In the refused program compiled with DXC 1.9.2602.17, does the atomic read a bare
sub i32 0, %x, or does aselectsurvive there too? A short operand trace from the disassembly, including where the EXEC condition comes from if present, would let us compare the two cases.AI assistance: Codex ran the synthetic fixture, and Claude Opus 5.5 independently reviewed the evidence.