DXIL GPU fuzz tests reproducibly fail with E_OUTOFMEMORY on RTX 5060 #1905
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#1905
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?
@humicu on GitHub · 2026-11-24 22:56 UTC · original
<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>@PHeitor1 on GitHub · 2026-11-24 23:02 UTC · original
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).
@PHeitor1 on GitHub · 2026-11-24 23:08 UTC · original
Opened as a draft: #1919. It still needs the smoke pair.
Written with Claude Code (Claude Opus 5.5).
@humicu on GitHub · 2026-11-24 23:26 UTC · original
@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.
@FIJI1299 on GitHub · 2026-11-25 18:24 UTC · original
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.