Tests: compare CreateDescriptorHeap, increment size and CreateFence a… #1579

Manually merged
github merged 1 commit from gh-pr/1579/head into gh-pr/1579/base 2026-11-26 04:58:08 +00:00
Owner

@⁠OtavioTadeu on GitHub · 2026-11-24 17:53 UTC · original
OtavioTadeu:tests/d3d12-descriptor-heap-and-fence-parity-480 → main · +202 −0 · 1 files · 1 commits · merged 2026-11-25 19:21 UTC

Adds host-driver parity integration tests for ID3D12Device::CreateDescriptorHeap (slot 14), GetDescriptorHandleIncrementSize (slot 15), and CreateFence (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

  • NVIDIA GeForce GTX 1660 SUPER (driver 32.0.16.1088), AMD Ryzen 5 5600G, Windows 11 build 26200, DXC 1.9.2602.17, rustc 1.100.0 (stable-x86_64-pc-windows-msvc), debug build
  • cargo test -p xcl --test d3d12_descriptor_heap_and_fence -- --test-threads=1: 3 passed, 0 failed, 0 ignored
  • cargo 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

  • AMD and Intel GPUs, Linux/Wine, and retail game titles (test-only PR)

AI use

  • Antigravity with Gemini 4 Neon: wrote the test file and PR description; reviewed and run locally by author.
**@⁠OtavioTadeu** on GitHub · 2026-11-24 17:53 UTC · [original](https://github.com/xcl-dev/xcl/pull/1579) `OtavioTadeu:tests/d3d12-descriptor-heap-and-fence-parity-480` → `main` · +202 −0 · 1 files · 1 commits · merged 2026-11-25 19:21 UTC Adds host-driver parity integration tests for `ID3D12Device::CreateDescriptorHeap` (slot 14), `GetDescriptorHandleIncrementSize` (slot 15), and `CreateFence` (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** - NVIDIA GeForce GTX 1660 SUPER (driver 32.0.16.1088), AMD Ryzen 5 5600G, Windows 11 build 26200, DXC 1.9.2602.17, rustc 1.100.0 (`stable-x86_64-pc-windows-msvc`), debug build - `cargo test -p xcl --test d3d12_descriptor_heap_and_fence -- --test-threads=1`: 3 passed, 0 failed, 0 ignored - `cargo 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** - AMD and Intel GPUs, Linux/Wine, and retail game titles (test-only PR) **AI use** - Antigravity with Gemini 4 Neon: wrote the test file and PR description; reviewed and run locally by author.
Adds host-driver parity integration tests for ID3D12Device::CreateDescriptorHeap (slot 14), GetDescriptorHandleIncrementSize (slot 15), and CreateFence (slot 36) (Part of #480) comparing descriptor layouts, increment sizes, fence values/Signal, ppv == null, invalid descriptor handling, and console IID fallback against the unhooked PC driver.

Verified with cargo test -p xcl --test d3d12_descriptor_heap_and_fence -- --test-threads=1 (3 passed, 0 failed on NVIDIA GeForce GTX 1660 SUPER).

Assisted-by: Antigravity (Gemini 4 Neon)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:58:07 +00:00
github manually merged commit 737bb432d7 into gh-pr/1579/base 2026-11-26 04:58:08 +00:00
Author
Owner

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

Full-suite run, since this PR has no test report yet. Tested exact head 737bb43 (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: 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.
  • 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:54 UTC · [original](https://github.com/xcl-dev/xcl/pull/1579#issuecomment-7141330522) Full-suite run, since this PR has no test report yet. Tested exact head `737bb43` (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: `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`. - 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

A run with vkd3d-proton as the host D3D12: all three tests pass.

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. 737bb43 as it is (based on 9e3831e), no uncommitted changes. d3d12_descriptor_heap_and_fence runs under Wine, one test per process (--exact).
  • create_descriptor_heap_matches_host_driver_and_handles_console_iid: ok
  • create_fence_and_signal_match_host_driver_and_handle_console_iid: ok
  • descriptor_handle_increment_size_pc_path_matches_host_driver: ok

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, 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/1579#issuecomment-7141564265) A run with vkd3d-proton as the host D3D12: all three tests pass. **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`. `737bb43` as it is (based on `9e3831e`), no uncommitted changes. `d3d12_descriptor_heap_and_fence` runs under Wine, one test per process (`--exact`). - `create_descriptor_heap_matches_host_driver_and_handles_console_iid`: ok - `create_fence_and_signal_match_host_driver_and_handle_console_iid`: ok - `descriptor_handle_increment_size_pc_path_matches_host_driver`: ok **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, 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 19:51 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. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodified main.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 19:51 UTC · [original](https://github.com/xcl-dev/xcl/pull/1579#issuecomment-7142692577) 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 unmodified `main`.) Thanks!
Author
Owner

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

Empirical test report (737bb432)

Hardware / environment

  • Windows 11 Enterprise Evaluation x64 build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB (driver 32.0.101.9175).
  • rustc 1.100.0 (0ef1bc386 2026-11-09)
  • dxc.exe --version returned dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47).
  • Commit 737bb432d7bfe854e370a62443f5990de403ec7e, Cargo test profile with debug info and incremental compilation disabled.

Commands and results

  • cargo test --workspace --no-run exited 0 outside the Arc lock. This step compiled the workspace test targets without executing them.
  • The following invocation exited 0. It ran the prebuilt fixture serially under the Arc lock.
& 'L:\XclTooling\Invoke-ArcTest.ps1' -Test {
    $env:XCL_ADAPTER = 'A770'
    $env:RUST_TEST_NOCAPTURE = '1'
    & (Join-Path $env:CARGO_TARGET_DIR 'debug\build\xcl\44db0af8b3d2fe93\out\d3d12_descriptor_heap_and_fence-44db0af8b3d2fe93.exe') --test-threads=1 2>&1
} *>&1 | ForEach-Object { $_.ToString() } | Tee-Object -FilePath (Join-Path $env:TEMP 'pr1579-focused.log')
  • Focused fixture: 3 passed / 0 failed / 0 ignored / 0 skipped. The log contains no SKIPPED lines.

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.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 05:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/1579#issuecomment-7153670350) ### Empirical test report (737bb432) **Hardware / environment** - Windows 11 Enterprise Evaluation x64 build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB (driver 32.0.101.9175). - `rustc 1.100.0 (0ef1bc386 2026-11-09)` - `dxc.exe --version` returned `dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47)`. - Commit `737bb432d7bfe854e370a62443f5990de403ec7e`, Cargo test profile with debug info and incremental compilation disabled. **Commands and results** - `cargo test --workspace --no-run` exited 0 outside the Arc lock. This step compiled the workspace test targets without executing them. - The following invocation exited 0. It ran the prebuilt fixture serially under the Arc lock. ```powershell & 'L:\XclTooling\Invoke-ArcTest.ps1' -Test { $env:XCL_ADAPTER = 'A770' $env:RUST_TEST_NOCAPTURE = '1' & (Join-Path $env:CARGO_TARGET_DIR 'debug\build\xcl\44db0af8b3d2fe93\out\d3d12_descriptor_heap_and_fence-44db0af8b3d2fe93.exe') --test-threads=1 2>&1 } *>&1 | ForEach-Object { $_.ToString() } | Tee-Object -FilePath (Join-Path $env:TEMP 'pr1579-focused.log') ``` - Focused fixture: **3 passed / 0 failed / 0 ignored / 0 skipped**. The log contains no `SKIPPED ` lines. **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.log` and published.
Author
Owner

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

Merging: descriptor heaps, increment sizes and fences 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/1579#issuecomment-7172185035) Merging: descriptor heaps, increment sizes and fences 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.