Tests: compare command objects and CreateRootSignature against host D… #1613

Manually merged
github merged 1 commit from gh-pr/1613/head into gh-pr/1613/base 2026-11-26 04:59:27 +00:00
Owner

@⁠OtavioTadeu on GitHub · 2026-11-24 18:14 UTC · original
OtavioTadeu:tests/d3d12-command-objects-and-rootsig-parity-480 → main · +278 −0 · 1 files · 1 commits · merged 2026-11-25 19:21 UTC

What is in it

  • Add host D3D12 parity tests for CreateCommandQueue (slot 8), CreateCommandAllocator (slot 9), CreateCommandList (slot 12), CreateCommandList1 (slot 51), and CreateRootSignature (slot 16), Part of #480:
    • Compares DIRECT/COMPUTE/COPY queues, allocators, and command lists (GetDesc, Reset, GetType, Close), invalid descriptor/mismatched allocator errors, and console IID fallbacks.
    • Compares empty and parameterized serialized root signatures, console IID fallback, and XCL's empty root-signature fallback on malformed bytecode.

Tested

  • hardware (GPU + driver, CPU), Rust version, debug / release: NVIDIA GeForce GTX 1660 SUPER (driver 32.0.16.1088, Turing wave32), AMD Ryzen 5 5600G, Windows 11 26200, rustc 1.100.0, debug
  • cargo test -p xcl --test d3d12_command_objects_and_root_sig -- --test-threads=1: 3 passed, 0 failed
  • cargo test --workspace -- --test-threads=4: 779 passed, 0 failed, 41 ignored (SKIPPED GPU tests: gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask [no wave64], gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware [no wave64], heap_window_out_of_memory_falls_back_to_the_switch_form [no heap windows])

Not tested

  • Retail title execution via scripts/smoke.ps1 (test-only PR, no retail game files on this machine).

AI use

  • Antigravity (Gemini 4 Neon) wrote the integration test cases and commit message; human reviewed.
**@⁠OtavioTadeu** on GitHub · 2026-11-24 18:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1613) `OtavioTadeu:tests/d3d12-command-objects-and-rootsig-parity-480` → `main` · +278 −0 · 1 files · 1 commits · merged 2026-11-25 19:21 UTC **What is in it** - Add host D3D12 parity tests for `CreateCommandQueue` (slot 8), `CreateCommandAllocator` (slot 9), `CreateCommandList` (slot 12), `CreateCommandList1` (slot 51), and `CreateRootSignature` (slot 16), Part of #480: - Compares `DIRECT`/`COMPUTE`/`COPY` queues, allocators, and command lists (`GetDesc`, `Reset`, `GetType`, `Close`), invalid descriptor/mismatched allocator errors, and console IID fallbacks. - Compares empty and parameterized serialized root signatures, console IID fallback, and XCL's empty root-signature fallback on malformed bytecode. **Tested** - hardware (GPU + driver, CPU), Rust version, debug / release: NVIDIA GeForce GTX 1660 SUPER (driver 32.0.16.1088, Turing wave32), AMD Ryzen 5 5600G, Windows 11 26200, rustc 1.100.0, debug - `cargo test -p xcl --test d3d12_command_objects_and_root_sig -- --test-threads=1`: 3 passed, 0 failed - `cargo test --workspace -- --test-threads=4`: 779 passed, 0 failed, 41 ignored (SKIPPED GPU tests: `gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask` [no wave64], `gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware` [no wave64], `heap_window_out_of_memory_falls_back_to_the_switch_form` [no heap windows]) **Not tested** - Retail title execution via `scripts/smoke.ps1` (test-only PR, no retail game files on this machine). **AI use** - Antigravity (Gemini 4 Neon) wrote the integration test cases and commit message; human reviewed.
Add host D3D12 parity integration tests for CreateCommandQueue (slot 8),
CreateCommandAllocator (slot 9), CreateCommandList (slot 12), CreateCommandList1
(slot 51), and CreateRootSignature (slot 16), extending #480 without requiring
retail game files or console DLLs:

- Compare DIRECT/COMPUTE/COPY queues and allocators against the host driver,
  including invalid descriptor parity and unknown console IID fallbacks.
- Compare CreateCommandList and ID3D12Device4::CreateCommandList1 across queue
  types, mismatched-allocator failure parity, and console IID fallbacks.
- Compare empty and parameterized serialized root signatures, console IID
  fallback, and XCL's empty root-signature fallback on malformed bytecode.

Verified locally with:
cargo test -p xcl --test d3d12_command_objects_and_root_sig -- --test-threads=1
(3 passed, 0 failed)

Assisted-by: Antigravity (Gemini 4 Neon)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:59:23 +00:00
github manually merged commit 3627755717 into gh-pr/1613/base 2026-11-26 04:59:27 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 18:57 UTC · original

Full-suite run, since this PR has no test report yet. Tested exact head 3627755 (on its base 9e3831e).

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_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.
  • The new tests ran and passed: create_command_queue_and_allocator_match_host_driver, create_command_list_and_list1_match_host_driver, create_root_signature_matches_host_driver_and_fallbacks.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, 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_form was skipped with --skip. It fails on main 9e3831e too, not because of this PR: under XCL_REQUIRE_GPU=mesh, runner::skip_test turns every skip except "no wave64" into a failure, including this test's opt-in "no heap windows" skip (XCL_HEAP_WINDOWS unset). Reported as #1651.

Not tested

  • a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 18:57 UTC · [original](https://github.com/xcl-dev/xcl/pull/1613#issuecomment-7141384786) Full-suite run, since this PR has no test report yet. Tested exact head `3627755` (on its base `9e3831e`). **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 616.64, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_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`. - The new tests ran and passed: `create_command_queue_and_allocator_match_host_driver`, `create_command_list_and_list1_match_host_driver`, `create_root_signature_matches_host_driver_and_fallbacks`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `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_form` was skipped with `--skip`. It fails on main `9e3831e` too, not because of this PR: under `XCL_REQUIRE_GPU=mesh`, `runner::skip_test` turns every skip except "no wave64" into a failure, including this test's opt-in "no heap windows" skip (`XCL_HEAP_WINDOWS` unset). Reported as #1651. **Not tested** - a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠JoaoPauluu on GitHub · 2026-11-24 19:04 UTC · original

With vkd3d-proton as the host, one of the three tests fails here: on the host's answer, not on XCL's.

Tested

  • RTX 3060 12 GB (NVIDIA 620.70.06), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 (4522cc1a) from #257 as the host D3D12. Release, cross-built for x86_64-pc-windows-gnu. 3627755 as it is (based on 9e3831e), no uncommitted changes. d3d12_command_objects_and_root_sig runs under Wine, one test per process (--exact).
  • create_command_list_and_list1_match_host_driver: ok. create_root_signature_matches_host_driver_and_fallbacks: ok.
  • create_command_queue_and_allocator_match_host_driver: fails at line 70, expected queue failure: hook=0x0, host=0x0.
  • To see every case, I temporarily replaced the failing assertion with a print of both HRESULTs, ran it once, and reverted it (the pass / fail results above are from the unchanged head). Both invalid queue descriptors succeed on vkd3d-proton, and XCL's hook returns the same:
    • Type 999: hook 0x0, host 0x0
    • DIRECT, NodeMask 0x10: hook 0x0, host 0x0
  • So the hook matches the host here. The test fails because it also requires the host to refuse. assert_eq!(hr_hook, hr_host) (plus both-null when it fails) would pass on both.

Not tested

  • native Windows; the rest of the suite on this head.

AI use

  • Claude Code (Claude Opus 5.5) built the head, ran the tests, made and reverted the diagnostic prints, and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
**@⁠JoaoPauluu** on GitHub · 2026-11-24 19:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/1613#issuecomment-7141561106) With vkd3d-proton as the host, one of the three tests fails here: on the host's answer, not on XCL's. **Tested** - RTX 3060 12 GB (NVIDIA 620.70.06), i5-10400F, 16 GB, CachyOS (kernel 7.3.3), Proton Experimental 11.0-20261112 with the patched vkd3d-proton 3.1 (`4522cc1a`) from #257 as the host D3D12. Release, cross-built for `x86_64-pc-windows-gnu`. `3627755` as it is (based on `9e3831e`), no uncommitted changes. `d3d12_command_objects_and_root_sig` runs under Wine, one test per process (`--exact`). - `create_command_list_and_list1_match_host_driver`: ok. `create_root_signature_matches_host_driver_and_fallbacks`: ok. - `create_command_queue_and_allocator_match_host_driver`: **fails** at line 70, `expected queue failure: hook=0x0, host=0x0`. - To see every case, I temporarily replaced the failing assertion with a print of both HRESULTs, ran it once, and reverted it (the pass / fail results above are from the unchanged head). Both invalid queue descriptors succeed on vkd3d-proton, and XCL's hook returns the same: - `Type 999`: hook `0x0`, host `0x0` - `DIRECT`, `NodeMask 0x10`: hook `0x0`, host `0x0` - So the hook matches the host here. The test fails because it also requires the host to refuse. `assert_eq!(hr_hook, hr_host)` (plus both-null when it fails) would pass on both. **Not tested** - native Windows; the rest of the suite on this head. **AI use** - Claude Code (Claude Opus 5.5) built the head, ran the tests, made and reverted the diagnostic prints, and wrote this report. The account owner asked for test reports to be posted and has not reviewed this one.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 20:30 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 20:30 UTC · [original](https://github.com/xcl-dev/xcl/pull/1613#issuecomment-7143649113) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~22 ignored. Thanks!
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 05:08 UTC · original

XCL PR #1613 verification

Tested head 3627755717e8012a8bbf82f8e7a3aa7a5eeb3dc9 from a clean detached checkout. The PR adds only crates/xcl/tests/d3d12_command_objects_and_root_sig.rs.

STOR-WINLAB ran Windows 11 Enterprise Evaluation x64 (build 26200), with an AMD Ryzen 7 3800X and Intel Arc A770 (driver 32.0.101.9175). DXC was 1.9.2609.5. Rust was rustc 1.100.0 (0ef1bc386 2026-11-09), x86_64-pc-windows-msvc.

Tested

  • cargo build --workspace and cargo test --workspace --no-run both succeeded outside the Arc lock.
  • cargo test -p xcl --test d3d12_command_objects_and_root_sig ran under Invoke-ArcTest.ps1 with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1. The log confirmed the real D3D12 backend selected the A770. Counts from pr1613-focused.log were 3 passed, 0 failed, 0 ignored and 0 SKIPPED lines.
  • Queue and allocator creation matched host HRESULTs for direct, compute and copy, with matching queue descriptors and allocator reset results. Both paths rejected the invalid inputs with null outputs. XCL handled synthetic console IIDs that the host rejected with E_NOINTERFACE.
  • Command-list creation matched host HRESULTs and types across all three list types. CreateCommandList matched close results and both paths rejected a mismatched allocator. CreateCommandList1 exercised reset and close on XCL lists. Both hooks handled synthetic console IIDs.
  • Root-signature creation matched host HRESULTs and returned objects for empty and root-constants/CBV signatures. XCL handled a synthetic console IID and substituted an empty signature for malformed bytecode the host rejected.

Not tested

Coverage was limited to full workspace compilation and the focused Arc A770 integration target. The full GPU workspace suite, retail-title runs and other adapters were omitted.

AI use

T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1613-focused.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 05:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/1613#issuecomment-7153493531) # XCL PR #1613 verification Tested head `3627755717e8012a8bbf82f8e7a3aa7a5eeb3dc9` from a clean detached checkout. The PR adds only `crates/xcl/tests/d3d12_command_objects_and_root_sig.rs`. STOR-WINLAB ran Windows 11 Enterprise Evaluation x64 (build 26200), with an AMD Ryzen 7 3800X and Intel Arc A770 (driver 32.0.101.9175). DXC was 1.9.2609.5. Rust was rustc 1.100.0 (0ef1bc386 2026-11-09), x86_64-pc-windows-msvc. **Tested** - `cargo build --workspace` and `cargo test --workspace --no-run` both succeeded outside the Arc lock. - `cargo test -p xcl --test d3d12_command_objects_and_root_sig` ran under `Invoke-ArcTest.ps1` with `XCL_ADAPTER=A770` and `RUST_TEST_NOCAPTURE=1`. The log confirmed the real D3D12 backend selected the A770. Counts from `pr1613-focused.log` were 3 passed, 0 failed, 0 ignored and 0 SKIPPED lines. - Queue and allocator creation matched host HRESULTs for direct, compute and copy, with matching queue descriptors and allocator reset results. Both paths rejected the invalid inputs with null outputs. XCL handled synthetic console IIDs that the host rejected with `E_NOINTERFACE`. - Command-list creation matched host HRESULTs and types across all three list types. `CreateCommandList` matched close results and both paths rejected a mismatched allocator. `CreateCommandList1` exercised reset and close on XCL lists. Both hooks handled synthetic console IIDs. - Root-signature creation matched host HRESULTs and returned objects for empty and root-constants/CBV signatures. XCL handled a synthetic console IID and substituted an empty signature for malformed bytecode the host rejected. **Not tested** Coverage was limited to full workspace compilation and the focused Arc A770 integration target. The full GPU workspace suite, retail-title runs and other adapters were omitted. **AI use** T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1613-focused.log` and published.
Author
Owner

@⁠ivall on GitHub · 2026-11-25 19:21 UTC · original

Merging: command objects and root signatures against the host driver.

Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug, main 2898511 with 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_1 and _3, which fail the same way on main); hle::d3d12x on 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.

**@⁠ivall** on GitHub · 2026-11-25 19:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/1613#issuecomment-7172190698) Merging: command objects and root signatures against the host driver. Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug, `main` `2898511` with 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_1` and `_3`, which fail the same way on `main`); `hle::d3d12x` on 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.
Author
Owner

@⁠ivall on GitHub · 2026-11-25 19:32 UTC · original

I merged this without acting on the Wine report above, sorry. The report is right: XCL answers as vkd3d-proton does, and the test required a refusal. #2466 compares the two instead and keeps the required refusal on Windows.

AI use: Claude Code (Claude Opus 5.5) wrote this on the maintainer's behalf.

**@⁠ivall** on GitHub · 2026-11-25 19:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/1613#issuecomment-7172439666) I merged this without acting on the Wine report above, sorry. The report is right: XCL answers as vkd3d-proton does, and the test required a refusal. #2466 compares the two instead and keeps the required refusal on Windows. AI use: Claude Code (Claude Opus 5.5) wrote this on the maintainer's behalf.
This discussion has been locked. Commenting is limited to contributors.
No description provided.