Skip to content

Tests: verify D3D12.X console queue descriptor translation - #1646

Merged
ivall merged 1 commit into
xcl-dev:mainfrom
razormontana:tests/d3d12-command-queue-parity
Nov 25, 2026
Merged

ivall merged 1 commit into
xcl-dev:mainfrom
razormontana:tests/d3d12-command-queue-parity

Conversation

@razormontana

Copy link
Copy Markdown
Contributor

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.

Register a synthetic title caller to exercise the console path at slot 8.
Compare queue descriptions against the native call on the same device,
including console flag stripping and DMA-to-copy translation.

Part of xcl-dev#480.

Assisted-by: OpenAI Codex (GPT-6.2 Sol)
@razormontana
razormontana marked this pull request as ready for review November 24, 2026 18:42
@JoaoPauluu

Copy link
Copy Markdown

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 Linux: docs/linux.md, scripts/linux and Wine start-up checks for vkd3d-proton and DXVK (#154, #241) #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

Copy link
Copy Markdown
Contributor

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!

@ivall ivall added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 24, 2026
@JJAutoCompare

Copy link
Copy Markdown

XCL PR #1646 — Windows / Intel Arc A770 verification

Head 01b6814, 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.

@ivall
ivall merged commit 8f87d72 into xcl-dev:main Nov 25, 2026
4 checks passed
@ivall

ivall commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants