Tests: compare CreateDescriptorHeap, increment size and CreateFence a… #1569
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1579"
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 OtavioTadeu on 2026-11-24T17:53:08Z.
Adds host-driver parity integration tests for
ID3D12Device::CreateDescriptorHeap(slot 14),GetDescriptorHandleIncrementSize(slot 15), andCreateFence(slot 36), with no game data or console DLLs required. Part of #480.What is in it
crates/xcl/tests/d3d12_descriptor_heap_and_fence.rs: compares PC-path descriptor handle increment sizes, RTV/DSV/view/sampler descriptor heaps, invalid descriptor handling,CreateFence+Signal+ppv == null, and unknown console IID fallback against the unhooked PC driver on the same adapter.Tested
stable-x86_64-pc-windows-msvc), debug buildcargo test -p xcl --test d3d12_descriptor_heap_and_fence -- --test-threads=1: 3 passed, 0 failed, 0 ignoredcargo test --workspace -- --test-threads=4: 779 passed, 0 failed, 41 ignored (SKIPPED GPU tests:gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware— no wave64;heap_window_out_of_memory_falls_back_to_the_switch_form— no heap windows)Regression run
Not required (test-only change under
crates/xcl/tests/; no runtime files modified).Not tested
AI use
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T18:54:57Z.
Full-suite run, since this PR has no test report yet. Tested exact head
737bb43(on its base9e3831e).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form: 778 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.descriptor_handle_increment_size_pc_path_matches_host_driver,create_descriptor_heap_matches_host_driver_and_handles_console_iid,create_fence_and_signal_match_host_driver_and_handle_console_iid.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 779 passed, 0 failed, 41 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).heap_window_out_of_memory_falls_back_to_the_switch_formwas skipped with--skip. It fails on main9e3831etoo, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns every skip except "no wave64" into a failure, including this test's opt-in "no heap windows" skip (XCL_HEAP_WINDOWSunset). Reported as #1651.Not tested
AI use
Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-24T19:04:42Z.
A run with vkd3d-proton as the host D3D12: all three tests pass.
Tested
4522cc1a) from #257 as the host D3D12. Release, cross-built forx86_64-pc-windows-gnu.737bb43as it is (based on9e3831e), no uncommitted changes.d3d12_descriptor_heap_and_fenceruns under Wine, one test per process (--exact).create_descriptor_heap_matches_host_driver_and_handles_console_iid: okcreate_fence_and_signal_match_host_driver_and_handle_console_iid: okdescriptor_handle_increment_size_pc_path_matches_host_driver: okNot tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T19:51:43Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:20:03Z.
Empirical test report (
737bb432)Hardware / environment
rustc 1.100.0 (0ef1bc386 2026-11-09)dxc.exe --versionreturneddxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47).737bb432d7bfe854e370a62443f5990de403ec7e, Cargo test profile with debug info and incremental compilation disabled.Commands and results
cargo test --workspace --no-runexited 0 outside the Arc lock. This step compiled the workspace test targets without executing them.SKIPPEDlines.Observed behavior
The log identifies the real D3D12 backend on the Intel Arc A770. The three passing cases covered descriptor heap creation and rejected-input parity, host descriptor increment sizes for all four heap types, and fence creation and signaling, including null output pointer HRESULT parity. The heap and fence tests also exercised fallback for their synthetic console interface IDs.
Not tested
Execution was limited to the PR's focused fixture, with compilation of the full workspace test targets. The full GPU workspace suite and game smoke runs were omitted.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1579-focused.logand published.Imported from ivall/xcl. Originally posted by ivall on 2026-11-25T19:21:33Z.
Merging: descriptor heaps, increment sizes and fences against the host driver.
Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug,
main2898511with 27 test PRs merged locally, this one included: the whole suite 3 times, 1419 passed, 2 failed, 46 ignored each time (fuzz_validate_and_gpu_1and_3, which fail the same way onmain);hle::d3d12xon 16 threads 5 times, no failure. This file alone 8 times: no failure.AI use: Claude Code (Claude Opus 5.5) reviewed and tested this and wrote the comment on the maintainer's behalf.