Tests: verify D3D12.X console queue descriptor translation #1636
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1646"
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 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.rscomparesGetDesc()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
8f007fd7bebf49569cc73fa4e89991108417e0cconmain9e3831e1f570d3646e53ab753b19ec07eb8f1485. Windows 11 23H2 (22631.5335), Core i7-10700K, GeForce RTX 3070 8 GB (NVIDIA 617.42), Rust 1.100.0x86_64-pc-windows-msvc, and DXC 1.9.2602.17.cargo test --offline --locked -p xcl --test d3d12_command_queue -- --test-threads=1 --nocapturepassed on the RTX 3070 and withXCL_ADAPTER=warp.cargo test --offline --locked --release -p xcl --test d3d12_command_queue -- --test-threads=1 --nocapturepassed on the RTX 3070. Each run reported 1 passed, 0 failed, 0 ignored, 0 skips.cargo build --offline --locked --workspacesucceeded.cargo test --offline --locked --workspace -- --test-threads=4 --show-outputon the RTX 3070 reported 777 passed, 0 failed, 41 ignored.gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardwareneed native wave64.heap_window_out_of_memory_falls_back_to_the_switch_formneeds heap windows.placed_title_textures_share_vram_and_preserve_pixelsneeds a reserved cube with mips. Another 32 external-sample tests returned early withXCL_SAMPLE_*unset.Regression run
Test-only addition under
crates/xcl/tests/.Not tested
AMD and Intel hardware, retail titles or samples, and the separate
CreateCommandQueueXextension slot.AI use
OpenAI Codex (GPT-6.2 Sol) wrote and ran the integration test, checked the workspace results, and drafted this description.
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
4522cc1a) from #257 as the host D3D12. Release, cross-built forx86_64-pc-windows-gnu.01b6814as it is (based onc160d86), no uncommitted changes.d3d12_command_queueruns under Wine, one test per process (--exact).console_command_queue_descriptions_agree_with_the_host_driver: okNot tested
AI use
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 unmodifiedmain.)Thanks!
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 onlycrates/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
cargo build --workspaceandcargo test --workspace --no-runboth exited 0.cargo test -p xcl --test d3d12_command_queue -- console_command_queue_descriptions_agree_with_the_host_driver --exact --test-threads=1 --nocapturereported 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.cargo test --workspace --no-fail-fast -- --test-threads=4under 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
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.logand published.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,
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.