Tests: compare CreateQueryHeap and CreateCommandSignature against hos… #1612
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1612
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1612/head"
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?
@OtavioTadeu on GitHub · 2026-11-24 18:14 UTC · original
OtavioTadeu:tests/d3d12-query-and-cmd-sig-parity-480→main· +141 −0 · 1 files · 1 commits · merged 2026-11-25 19:20 UTCWhat is in it
ID3D12Device::CreateQueryHeap(slot 39) andID3D12Device::CreateCommandSignature(slot 41), Part of #480:OCCLUSION,TIMESTAMP,PIPELINE_STATISTICS, andSO_STATISTICSquery heaps, invalid descriptors, and unknown console IID fallback (ID3D12QueryHeap).DRAW,DRAW_INDEXED, andDISPATCHcommand signatures, invalid strides/counts/node masks, and unknown console IID fallback (ID3D12CommandSignature).Tested
cargo test -p xcl --test d3d12_query_and_command_signature -- --test-threads=1: 2 passed, 0 failedcargo test --workspace -- --test-threads=4: 778 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
scripts/smoke.ps1(test-only PR, no retail game files on this machine).AI use
@futurepro62 on GitHub · 2026-11-24 19:00 UTC · original
Full-suite GPU run (NVIDIA and AMD), which the review above asks for. Tested exact head
7807d58(on its base9e3831e).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form: 777 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.create_query_heap_matches_host_driver,create_command_signature_matches_host_driver.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 778 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_formwas skipped with--skip. It fails on main9e3831etoo, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns every skip except "no wave64" into a failure, including this test's opt-in "no heap windows" skip (XCL_HEAP_WINDOWSunset). Reported as #1651.Not tested
AI use
@JoaoPauluu on GitHub · 2026-11-24 19:04 UTC · original
With vkd3d-proton as the host, both tests fail here: on the host's answers, not on XCL's.
Tested
4522cc1a) from #257 as the host D3D12. Release, cross-built forx86_64-pc-windows-gnu.7807d58as it is (based on9e3831e), no uncommitted changes.d3d12_query_and_command_signatureruns under Wine, one test per process (--exact).create_command_signature_matches_host_driver: fails at line 126,expected failure: hook=0x0, host=0x0.create_query_heap_matches_host_driver: fails at line 67,expected failure for … Count: 0 …: hook=0x0, host=0x0.0x800700570x800700570x800700570x80070057NodeMask 0x100x00x0TIMESTAMP,Count 00x00x0Type 9990x800700570x80070057TIMESTAMP,NodeMask 0x100x00x0NodeMask 0x10and a zero-count query heap, where the tests expect a refusal. Comparing the hook with the host there, as the valid cases do, would pass on both.Not tested
AI use
@OtavioTadeu on GitHub · 2026-11-24 19:08 UTC · original
Updated Tested in the PR description with the full
cargo test --workspace -- --test-threads=4GPU result (778 passed, 0 failed, 41 ignored, plus the 3 hardware-skipped GPU tests on GTX 1660 SUPER). Thank you for the review!@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!
@JJAutoCompare on GitHub · 2026-11-25 05:08 UTC · original
XCL PR #1612 focused verification
Head
7807d58e899ef01de2f8884e43ab6e3fc4babd2a, detached and clean. The diff adds onlycrates/xcl/tests/d3d12_query_and_command_signature.rs.Tested
10.0.26200.9974, AMD64 Family 23 Model 113 Stepping 0, Intel Arc A770 (16,258 MiB reported by XCL), Intel driver32.0.101.9175, DXC1.9.2609.5, and rustc1.100.0 (0ef1bc386 2026-11-09), targetx86_64-pc-windows-msvc. Unoptimized profiles with debug info and incremental compilation disabled.cargo build --workspaceandcargo test --workspace --no-runboth succeeded.Invoke-ArcTest.ps1 -Test { ... }, withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1, rancmd.exe /d /c "$fixture 2>&1" | Tee-Object -FilePath $focusedLog. The fixture wasd3d12_query_and_command_signature-510e9924b1ff65d4.exefrom the workspace test build. XCL logged the real A770 backend.pr1612-focused.logrecorded 2 passed, 0 failed, 0 ignored, 0 explicit SKIPPED lines.create_query_heap_matches_host_driverconfirmed the hook, matching success HRESULTs and non-null objects for occlusion, timestamp, pipeline statistics, and stream-output statistics heaps. Zero count, invalid type, and invalid node mask failed with null outputs on both paths. The host returnedE_NOINTERFACEfor the unknown console IID, and XCL created a query heap via its fallback.create_command_signature_matches_host_driverconfirmed the hook, matching success HRESULTs and non-null objects for draw, indexed draw, and dispatch signatures. Undersized stride, zero arguments, and invalid node mask failed with null outputs on both paths. The host returnedE_NOINTERFACEfor the unknown console IID, and XCL created a command signature via its fallback.Not tested
Only the focused Arc A770 integration target ran, alongside full workspace compilation. The full GPU workspace suite was 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
pr1612-focused.logand published.@ivall on GitHub · 2026-11-25 19:20 UTC · original
Merging: query heaps and command signatures 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.
@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.