Tests: the sparse VRAM test binds the heaps its root signature indexes #2017
No reviewers
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!2017
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2017/head"
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?
@cindertheblue on GitHub · 2026-11-25 00:46 UTC · original
cindertheblue:tests/sparse-vram-binds-descriptor-heaps→main· +6 −0 · 1 files · 1 commits · merged 2026-11-25 01:16 UTCgpu_sparse_vram_descriptors_buffers_and_xmemsets the ABI root signature (pso::abi_root_signature, withCBV_SRV_UAV_HEAP_DIRECTLY_INDEXEDandSAMPLER_HEAP_DIRECTLY_INDEXED) without callingSetDescriptorHeapsfirst. D3D12 requires the heaps to be bound before such a root signature is set; with the debug layer on, each submit logs error 1419 twice (once per heap type), four times per run. The runner's own tests bind heaps throughbind_resources; this test builds its command list by hand and doesn't.Related: #2016 (the 19 / 23 failures with
XCL_D3D12_DEBUG=1, which this does not fix: those come from the debug layer being enabled after the runner's device exists).What is in it
Tests: the sparse VRAM test binds the heaps its root signature indexes(crates/xcl/src/gpu/recomp/tests.rs, +6 lines): a one-descriptor shader-visible CBV/SRV/UAV heap and sampler heap, bound withSetDescriptorHeapsbeforeSetComputeRootSignatureon every recording (the list is reset between the two submits). The shader reads nothing through them.Tested
stable-x86_64-pc-windows-msvc, DXC 1.8.2502.11 (SDK 10.0.26100), debug; this headd8391cdonmain6567c5f, no uncommitted changes.XCL_D3D12_DEBUG=1 cargo test -p xcl --lib gpu_sparse_vram_descriptors_buffers_and_xmem -- --nocapture: onmain6567c5fthe test passes and logs error 1419 four times; on this head it passes with no debug-layer error.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4, twice on this head: 996 passed, 1 failed, 45 ignored both times. The failure isgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722,res[30] = 0x1, CPU 0x7fffffff), the AMD mismatch from #1679; it fails the same way onmain. Without--no-fail-fastcargo stops at that failure in the lib binary: 947 passed, 1 failed, 25 ignored.heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(Developer Mode off), and six per-lane f16 / f32 forms inlower_dxil::tests(refused (unsupported …)).Regression run
crates/xcl/src/gpu/recomp/tests.rschanges.Not tested
scripts\test.ps1itself (the same build and test commands, run directly).AI use
@nnonno91 on GitHub · 2026-11-25 00:57 UTC · original
Independent RTX 5090 test of
d8391cdeb7683230c33c666d98cba6d964046013and its parent6567c5ffa38fbc7039b2d6bf520154689cc1f482. The changed test passed with default settings and with the D3D12 debug layer enabled. This setup did not emit error 1419 on either revision.Tested
d3d12SDKLayers.dll10.0.26100.9818.XCL_ADAPTER='RTX 5090'.cargo build --workspace --lockedpassed on both revisions.cargo test --locked -p xcl --lib gpu::recomp::tests::gpu_sparse_vram_descriptors_buffers_and_xmem -- --exact --nocapturepassed in three separate runs on the head and one on its parent with default settings. Each ran the GPU assertions with no skips.XCL_D3D12_DEBUG=1and other diagnostic overrides removed gave 1 passed, 0 failed, 0 ignored on each revision, no skips. Both logs confirmed the debug layer was enabled and showed the process-exit live-object warnings. Neither logged 1419. Initial debug attempts with empty-valued diagnostic overrides present exited0xc0000005on both revisions. I removed those overrides and reran the comparison above.cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-outputon each revision gave 993 passed, 4 failed, 45 ignored. The changed sparse test passed on both. The same four fuzz batches failed on both at seeds 70, 545, 1019 and 1507, each withCreateComputePipelineStatereturning0x8007000E. Both runs logged 24 explicit skips inside the pass count (19 no native wave64, 3 unsupported per-lane shader cases, 1 unable to disable the driver cache, 1 heap windows off).Not tested
The cause of the initial debug-process exit, retail titles, or other GPUs on this revision.
AI use
OpenAI Codex (GPT-6 family, exact variant unavailable) ran and verified the tests and wrote this report.
@cindertheblue on GitHub · 2026-11-25 01:23 UTC · original
Thanks for testing it on NVIDIA. That's a difference I didn't expect, so here is exactly what the same test logs on my side with the debug layer, for comparison.
XCL_D3D12_DEBUG=1 cargo test -p xcl --lib gpu_sparse_vram_descriptors_buffers_and_xmem -- --nocapture, RX 7600 XT, driver 32.0.31041.1004, the same inboxd3d12SDKLayers.dll10.0.26100.9818 (no Agility SDK line in the log), no otherXCL_*set. TheD3D12 debug layer (…)lines XCL logs:6567c5fd8391cdSetComputeRootSignature: SetDescriptorHeaps must be called…, once for CBV/SRV/UAV and once for samplers, per submit)In my log the live-object warnings and 1419 arrive the same way (XCL's
ID3D12InfoQueue1callback,real.rs:536), and only the parent logs 1419. I don't know why the RTX 5090 doesn't raise it with the same layer version. The ABI root signature always has both*_HEAP_DIRECTLY_INDEXEDflags (pso.rs:1015), and the vendor-specific code I found inreal.rs,list_x.rs,bind.rsandpso.rsis about pipeline compiles, barriers and indirect arguments, not heap binding, but I haven't traced the 5090's path.AI use: Claude Code (Claude Opus 5.5) ran the comparison and wrote this comment from the logs.
@DavidM1911 on GitHub · 2026-11-25 04:01 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!