DXIL GPU fuzz tests reproducibly fail with E_OUTOFMEMORY on RTX 5060 #1895
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 humicu on 2026-11-24T22:56:45Z.
<html>
DXIL: Four GPU fuzz tests consistently fail with E_OUTOFMEMORY on RTX 5060
Environment
XCL commit:
689f2db477c3c062cf162649781640ef8a977c18GPU: NVIDIA GeForce RTX 5060 (8 GB)
NVIDIA driver: 617.42 (WDDM)
CPU: AMD Ryzen 7 5700X
RAM: 32 GB
OS: Windows
DXCompiler/DXIL: 1.9.2602.17 (21d28f72)
Windows SDK: 10.0.26100.0
Git working tree: Clean
Description
After updating from
c4d37beto689f2db, both debug and release workspace builds compiled successfully. However, four newly introduced DXIL GPU fuzz tests consistently fail duringCreateComputePipelineStatewithE_OUTOFMEMORY (0x8007000E).The failures occur at identical seeds during sequential workspace testing and isolated fuzz testing. Seed 70 also fails when executed individually in fresh processes under both debug and release configurations.
Steps to reproduce
Run the full fuzz test group:
Individual debug reproduction:
Individual release reproduction:
Expected behavior
All four GPU fuzz tests complete successfully.
Actual behavior
All four tests panic at
crates/xcl/src/gpu/dxil/fuzz_tests.rs:1167:110with the following error:The failing seeds are consistent across repeated runs:
Test
Seed
Shader size
Instructions
fuzz_validate_and_gpu_0
70
2884 B
125
fuzz_validate_and_gpu_1
545
2928 B
145
fuzz_validate_and_gpu_2
1019
3012 B
127
fuzz_validate_and_gpu_3
1507
2952 B
115
The isolated group failed in 0.87 seconds, the individual debug test in 0.53 seconds, and the individual release test in 0.86 seconds.
Additional observations
Previous commit
c4d37becompleted sequential workspace testing with 958 passed, 0 failed and 43 ignored.Both debug and release builds compile successfully.
The failures reproduce independently of the full workspace test suite.
Debug and release configurations produce identical errors for seed 70.
No local source modifications are present.
nvidia-smifollowing testing reported:VRAM usage: 790 MiB / 8151 MiB
GPU utilization: 0%
GPU temperature: 51°C
Actual VRAM exhaustion has not been established, as memory usage was measured after testing rather than during the failure. The consistent failing seeds and reproduction in fresh processes may indicate a generated DXIL or driver compatibility issue.
Happy to provide additional logs or run further diagnostic tests on this hardware if helpful.
Thanks for all the continued work on XCL!
</html>Imported from ivall/xcl. Originally posted by PHeitor1 on 2026-11-24T23:02:18Z.
Same here on an RTX 5060 Ti (621.24), same four seeds, and the cause is known: it is not video memory. The NVIDIA driver refuses a compute pipeline that has a groupshared atomic subtract of a non-constant value.
55e9c3bstopped emittingatomicrmw sub, which RTX 50 drivers refused, and emitsaddof0 - xinstead. @Kalmarv inferred that newer drivers fold that back into the subtract. The runs here confirm the trigger: 56 of the 1232 seeds that run on the GPU are refused, all with a groupshared subtract, and a few lines of plain HLSL (InterlockedAdd(g[i], 0u - v), compiled by DXC) are refused too.ds_sub_u32of a register is refused here on both the HLSL and the direct DXIL path.ds_sub_u32as a compare-exchange loop. Patch and results: the four fuzz tests and #1778's LDS test pass with it. It changes the translators, so it needs a smoke pair on a retail title, which I can't run.If you can, please try that patch on your 5060 with
cargo test -p xcl --lib -- gpu_ds_sub_u32_of_a_register gpu::dxil::fuzz_tests: 617.42 would be a new driver for it.Run and written with Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by PHeitor1 on 2026-11-24T23:08:52Z.
Opened as a draft: #1919. It still needs the smoke pair.
Written with Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by humicu on 2026-11-24T23:26:48Z.
@PHeitor1 Confirmed working on my RTX 5060 with driver 617.42, originally reported in #1905.
Environment
b54ac4e842a365d75ba97dfd07892cb75a0bd20eTested
cargo test -p xcl --lib -- gpu_ds_sub_u32_of_a_register gpu::dxil::fuzz_tests --test-threads=1 --nocaptureDefault HLSL path:
With
XCL_DIRECT_DXIL=1:All four fuzz batches and
gpu_ds_sub_u32_of_a_registerpassed in both configurations. Each run validated 2,000 seeds and GPU-compared 1,232.The four fuzz failures previously reported on
689f2dbno longer occur with this patch.Not yet tested: Full workspace suite, release configuration and retail-title smoke pair.
Thanks for investigating and addressing this!
AI use: Tests executed locally by me, with ChatGPT assistance interpreting the output and drafting this report.
upstream-sync referenced this issue2026-11-25 14:08:42 +00:00
Imported from ivall/xcl. Originally posted by alexmircea1299 on 2026-11-25T18:24:22Z.
Verified commit
5835139on Windows (NVIDIA RTX 5070, driver621.40, DXC1.8.2502.11):main):cargo test -p xcl --lib fuzz_validate_and_gpufails (E_OUTOFMEMORYon seeds70,545,1019,1507).#1919(5835139): Both default HLSL and direct DXIL (XCL_DIRECT_DXIL=1) paths pass all DXIL GPU fuzz tests (6 passed, 0 failed, 2 ignored) cleanly.Imported from ivall/xcl. Originally posted by Flamingo572 on 2026-11-26T18:55:28Z.
Additional confirmation on an RTX 5060 Laptop GPU (driver
32.0.16.1742/617.42):Tested
069292cadbe4fa31e19b2b282b25325ae6eaf0d8(parentmain8b957bec6f82495aec940944c6bf47faa02db590; diff only touchescrates/xcl/src/shaders.rs)32.0.16.1742), AMD Ryzen AI 7 350 w/ Radeon 860M, Windows NT10.0.26300.0,rustc 1.100.0(stable-x86_64-pc-windows-msvc), Windows SDK DXC1.9.2602.17(10.0.26100.0), debug.\scripts\test.ps1(cargo test --workspace -- --test-threads=4):xcl --libreported1316 passed; 4 failed; 27 ignored, failing ongpu::dxil::fuzz_tests::fuzz_validate_and_gpu_{0,1,2,3}at seeds70,545,1019, and1507withCreateComputePipelineState: Not enough memory resources are available to complete this operation. (0x8007000E)cargo test -p xcl --lib fuzz_validate_and_gpu -- --test-threads=1:0 passed; 4 failed; 0 ignored(0.64s) on the exact same four seeds (70,545,1019,1507)Not tested
XCL_DIRECT_DXIL=1, release buildAI use
Imported from ivall/xcl. Originally posted by Wolf1098 on 2026-11-29T02:59:50Z.
Imported from ivall/xcl. Originally posted by Wolf1098 on 2026-11-29T03:05:12Z.
Imported from ivall/xcl. Originally posted by Wolf1098 on 2026-11-29T03:13:53Z.
as of
commit
fa204595a4neg = sub 0, x
atomicrmw add ..., neg
still triggers:
CreateComputePipelineState
0x8007000E
two's-complement negation approach expressed as:
(x ^ -1) + 1 still triggers fails
Imported from ivall/xcl. Originally posted by Wolf1098 on 2026-11-29T03:29:28Z.
The common property of the failing cases is now:
value = arithmetic negation of groupshared-derived value
The common property of the passing cases is:
value = arbitrary transform of groupshared-derived value
Passing
x
x + 1
x ^ 1
x + 0x40000000
~x
1 - x
-(x + 1)
Failing
0 - x
(~x) + 1
// NVIDIA Blackwell driver bug:
// exact arithmetic negation fed to groupshared atomic-add causes
// CreateComputePipelineState(E_OUTOFMEMORY).
//
// Fails:
// add(ptr, 0 - x)
// add(ptr, (~x) + 1)
//
// Works:
// add(ptr, 1 - x)
// add(ptr, -(x + 1)
Imported from ivall/xcl. Originally posted by Wolf1098 on 2026-11-29T03:50:10Z.
Imported from ivall/xcl. Originally posted by Wolf1098 on 2026-11-29T03:57:28Z.
#copilot ai
Imported from ivall/xcl. Originally posted by Wolf1098 on 2026-11-29T04:01:43Z.
Imported from ivall/xcl. Originally posted by Wolf1098 on 2026-11-29T04:06:08Z.
%v = add i32 (sub i32 0, %x), 1
atomicrmw add shared, %v
Imported from ivall/xcl. Originally posted by Wolf1098 on 2026-11-29T08:03:15Z.
I changed direct( to cas( for sub|sub_u32 in fn rwm32.... nvm, apart from graphical flickering, black frames???? on certain renders... it also crashed.....
xcl.log