Tests: verify D3D12.X console queue descriptor translation #1636

Merged
razormontana merged 1 commit from upstream-pr/1646 into main 2026-11-25 19:24:10 +00:00
razormontana commented 2026-11-24 18:39:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by razormontana on 2026-11-24T18:39:30Z.


Test how the D3D12.X queue hook translates descriptors from a console caller. The expected descriptions come from the original D3D12 method on the same device. Part of #480. Related PR #1613 covers queue calls from a host caller.

What is in it

  • crates/xcl/tests/d3d12_command_queue.rs compares GetDesc() for direct, compute with a console-only flag, and console DMA mapped to a native copy queue. The test registers the synthetic caller's unwind range so the slot guard sends its call through the console path.

Tested

  • Head 8f007fd7bebf49569cc73fa4e89991108417e0cc on main 9e3831e1f570d3646e53ab753b19ec07eb8f1485. Windows 11 23H2 (22631.5335), Core i7-10700K, GeForce RTX 3070 8 GB (NVIDIA 617.42), Rust 1.100.0 x86_64-pc-windows-msvc, and DXC 1.9.2602.17.
  • cargo test --offline --locked -p xcl --test d3d12_command_queue -- --test-threads=1 --nocapture passed on the RTX 3070 and with XCL_ADAPTER=warp. cargo test --offline --locked --release -p xcl --test d3d12_command_queue -- --test-threads=1 --nocapture passed on the RTX 3070. Each run reported 1 passed, 0 failed, 0 ignored, 0 skips.
  • cargo build --offline --locked --workspace succeeded. cargo test --offline --locked --workspace -- --test-threads=4 --show-output on the RTX 3070 reported 777 passed, 0 failed, 41 ignored.
  • The pass count includes four reported GPU skips. gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware need native wave64. heap_window_out_of_memory_falls_back_to_the_switch_form needs heap windows. placed_title_textures_share_vram_and_preserve_pixels needs a reserved cube with mips. Another 32 external-sample tests returned early with XCL_SAMPLE_* unset.

Regression run

Test-only addition under crates/xcl/tests/.

Not tested

AMD and Intel hardware, retail titles or samples, and the separate CreateCommandQueueX extension slot.

AI use

OpenAI Codex (GPT-6.2 Sol) wrote and ran the integration test, checked the workspace results, and drafted this description.

<!-- greyfinch-sync:ivall/xcl:issue:6588852793 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1646). Originally posted by [razormontana](https://github.com/razormontana) on 2026-11-24T18:39:30Z. --- Test how the D3D12.X queue hook translates descriptors from a console caller. The expected descriptions come from the original D3D12 method on the same device. Part of #480. Related PR #1613 covers queue calls from a host caller. **What is in it** - `crates/xcl/tests/d3d12_command_queue.rs` compares `GetDesc()` for direct, compute with a console-only flag, and console DMA mapped to a native copy queue. The test registers the synthetic caller's unwind range so the slot guard sends its call through the console path. **Tested** - Head `8f007fd7bebf49569cc73fa4e89991108417e0cc` on `main` `9e3831e1f570d3646e53ab753b19ec07eb8f1485`. Windows 11 23H2 (22631.5335), Core i7-10700K, GeForce RTX 3070 8 GB (NVIDIA 617.42), Rust 1.100.0 `x86_64-pc-windows-msvc`, and DXC 1.9.2602.17. - `cargo test --offline --locked -p xcl --test d3d12_command_queue -- --test-threads=1 --nocapture` passed on the RTX 3070 and with `XCL_ADAPTER=warp`. `cargo test --offline --locked --release -p xcl --test d3d12_command_queue -- --test-threads=1 --nocapture` passed on the RTX 3070. Each run reported **1 passed, 0 failed, 0 ignored, 0 skips**. - `cargo build --offline --locked --workspace` succeeded. `cargo test --offline --locked --workspace -- --test-threads=4 --show-output` on the RTX 3070 reported **777 passed, 0 failed, 41 ignored**. - The pass count includes four reported GPU skips. `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` need native wave64. `heap_window_out_of_memory_falls_back_to_the_switch_form` needs heap windows. `placed_title_textures_share_vram_and_preserve_pixels` needs a reserved cube with mips. Another 32 external-sample tests returned early with `XCL_SAMPLE_*` unset. **Regression run** Test-only addition under `crates/xcl/tests/`. **Not tested** AMD and Intel hardware, retail titles or samples, and the separate `CreateCommandQueueX` extension slot. **AI use** OpenAI Codex (GPT-6.2 Sol) wrote and ran the integration test, checked the workspace results, and drafted this description.
JoaoPauluu commented 2026-11-24 19:07:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-24T19:04:44Z.


A run with vkd3d-proton as the host D3D12: the test passes.

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. 01b6814 as it is (based on c160d86), no uncommitted changes. d3d12_command_queue runs under Wine, one test per process (--exact).
  • console_command_queue_descriptions_agree_with_the_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.
<!-- greyfinch-sync:ivall/xcl:comment:7141565145 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1646#issuecomment-7141565145). Originally posted by [JoaoPauluu](https://github.com/JoaoPauluu) on 2026-11-24T19:04:44Z. --- A run with vkd3d-proton as the host D3D12: the test passes. **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`. `01b6814` as it is (based on `c160d86`), no uncommitted changes. `d3d12_command_queue` runs under Wine, one test per process (`--exact`). - `console_command_queue_descriptions_agree_with_the_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.
DavidM1911 commented 2026-11-24 21:09:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T21:06:54Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7144494602 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1646#issuecomment-7144494602). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T21:06:54Z. --- 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!
JJAutoCompare commented 2026-11-25 05:08:29 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:00:22Z.


XCL PR #1646 — Windows / Intel Arc A770 verification

Head 01b68148f6, detached and clean before and after testing. The PR adds only crates/xcl/tests/d3d12_command_queue.rs.

STOR-WINLAB, Windows 11 Enterprise Evaluation x64 (build 26200), AMD64 Family 23 Model 113, Intel Arc A770 (16 GB, driver 32.0.101.9175), DXC 1.9.2609.5, and rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Cargo dev/test profiles were unoptimized, with debug info and incremental compilation disabled.

Tested

  • Outside the GPU mutex, cargo build --workspace and cargo test --workspace --no-run both exited 0.
  • Under the Arc mutex with XCL_ADAPTER=A770, cargo test -p xcl --test d3d12_command_queue -- console_command_queue_descriptions_agree_with_the_host_driver --exact --test-threads=1 --nocapture reported 1 passed, 0 failed, 0 ignored and 0 explicit skips. The log confirmed the real A770 backend. The synthetic title caller exercised the hooked vtable slot 8 and matched native GetDesc() on the same device for direct, compute with console flag 0x2 stripped, and console DMA translated to copy.
  • One run of cargo test --workspace --no-fail-fast -- --test-threads=4 under the Arc mutex with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1 exited 101. Summed across 21 result lines (20 test binaries and 1 doctest harness), libtest reported 841 passed, 18 failed and 42 ignored. The new queue test also passed here.

Workspace failures and skips

  • The library target had 17 failures. Thirteen reported CreateComputePipelineState error 0x80070057. Four reported mismatches in fused arithmetic, texture sampling, mixed-width VALU, and whole-wave pixel reductions. The e2e target failed the synthetic title’s RSSetDepthBiasX check (blue where green was expected).
  • Six explicit SKIPPED lines are included in libtest’s pass count and provide no coverage. The reasons were no native wave64 (2), tiled tier below 2 (1), no heap windows (1), and unavailable D3D12 debug layer (2). Counts came from pr1646-suite.log.

Not tested

Matched main baseline, retail smoke or external samples (XCL_SAMPLE_* unset), release builds, other adapters, and the separate CreateCommandQueueX extension slot.

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

<!-- greyfinch-sync:ivall/xcl:comment:7153360665 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1646#issuecomment-7153360665). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T05:00:22Z. --- # XCL PR #1646 — Windows / Intel Arc A770 verification Head 01b68148f69d9b6aba44477e3799f1ca1bd16289, detached and clean before and after testing. The PR adds only `crates/xcl/tests/d3d12_command_queue.rs`. STOR-WINLAB, Windows 11 Enterprise Evaluation x64 (build 26200), AMD64 Family 23 Model 113, Intel Arc A770 (16 GB, driver 32.0.101.9175), DXC 1.9.2609.5, and rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Cargo dev/test profiles were unoptimized, with debug info and incremental compilation disabled. **Tested** - Outside the GPU mutex, `cargo build --workspace` and `cargo test --workspace --no-run` both exited 0. - Under the Arc mutex with XCL_ADAPTER=A770, `cargo test -p xcl --test d3d12_command_queue -- console_command_queue_descriptions_agree_with_the_host_driver --exact --test-threads=1 --nocapture` reported 1 passed, 0 failed, 0 ignored and 0 explicit skips. The log confirmed the real A770 backend. The synthetic title caller exercised the hooked vtable slot 8 and matched native GetDesc() on the same device for direct, compute with console flag 0x2 stripped, and console DMA translated to copy. - One run of `cargo test --workspace --no-fail-fast -- --test-threads=4` under the Arc mutex with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1 exited 101. Summed across 21 result lines (20 test binaries and 1 doctest harness), libtest reported 841 passed, 18 failed and 42 ignored. The new queue test also passed here. **Workspace failures and skips** - The library target had 17 failures. Thirteen reported CreateComputePipelineState error 0x80070057. Four reported mismatches in fused arithmetic, texture sampling, mixed-width VALU, and whole-wave pixel reductions. The e2e target failed the synthetic title’s RSSetDepthBiasX check (blue where green was expected). - Six explicit SKIPPED lines are included in libtest’s pass count and provide no coverage. The reasons were no native wave64 (2), tiled tier below 2 (1), no heap windows (1), and unavailable D3D12 debug layer (2). Counts came from pr1646-suite.log. **Not tested** Matched main baseline, retail smoke or external samples (XCL_SAMPLE_* unset), release builds, other adapters, and the separate CreateCommandQueueX extension slot. **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 `pr1646-suite.log` and published.
upstream-sync closed this pull request 2026-11-25 20:07:12 +00:00
ivall commented 2026-11-25 20:08:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-25T19:24:12Z.


Merging: console queue descriptions 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.

<!-- greyfinch-sync:ivall/xcl:comment:7172245176 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1646#issuecomment-7172245176). Originally posted by [ivall](https://github.com/ivall) on 2026-11-25T19:24:12Z. --- Merging: console queue descriptions 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1636
No description provided.