Repository navigation
Tests: the sparse VRAM test binds the heaps its root signature indexes - #2017
raylitebull merged 1 commit into
Conversation
gpu_sparse_vram_descriptors_buffers_and_xmem sets the ABI root signature, which has D3D12_ROOT_SIGNATURE_FLAG_CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED and SAMPLER_HEAP_DIRECTLY_INDEXED, without SetDescriptorHeaps first. With the debug layer on that is error 1419, twice per submit (four times per run). Bind a one-descriptor CBV/SRV/UAV heap and a sampler heap before it, on every recording, as the runner does through bind_resources. The shader reads nothing through them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent RTX 5090 test of Tested
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. |
|
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.
In my log the live-object warnings and 1419 arrive the same way (XCL's AI use: Claude Code (Claude Opus 5.5) ran the comparison and wrote this comment from the logs. |
gpu_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 Direct DXIL: geometry mode, MSAA loads and directed f32 rounding #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