Tests: compare CreateCommittedResource against the host D3D12 driver #1578
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!1578
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1578/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 17:52 UTC · original
OtavioTadeu:tests/d3d12-committed-resource-parity-480→main· +197 −0 · 1 files · 1 commits · merged 2026-11-25 19:21 UTCAdds host-driver parity integration tests for
ID3D12Device::CreateCommittedResource(slot 27), with no game data or console DLLs required. Part of #480.What is in it
crates/xcl/tests/d3d12_create_committed_resource.rs: comparesCreateCommittedResourceHRESULTs,GetDesc(), buffer GPU VAs, invalid descriptor handling, 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 buildcargo test -p xcl --test d3d12_create_committed_resource -- --test-threads=1: 2 passed, 0 failed, 0 ignoredcargo 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])Regression run
Not required (test-only change under
crates/xcl/tests/; no runtime files modified).Not tested
AI use
@futurepro62 on GitHub · 2026-11-24 18:52 UTC · original
Full-suite run, since this PR has no test report yet. Tested exact head
d32f5a2(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.committed_resources_match_host_driver_desc_and_status,committed_resource_unknown_console_iid_falls_back_to_pc_resource.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, one of the two tests fails here: on the host's answer, not on XCL's.
Tested
4522cc1a) from #257 as the host D3D12. Release, cross-built forx86_64-pc-windows-gnu.d32f5a2as it is (based on9e3831e), no uncommitted changes.d3d12_create_committed_resourceruns under Wine, one test per process (--exact).committed_resource_unknown_console_iid_falls_back_to_pc_resource: ok.committed_resources_match_host_driver_desc_and_status: fails at line 170,zero-width buffer: expected host failure, got 0x0.0x0, hook0x00x0, hook0x0GetResourceAllocationInfogives size 0 for a zero-width buffer).Not tested
AI use
@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 unmodifiedmain.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 05:20 UTC · original
Empirical test report (
d32f5a2a)Hardware / environment
rustc --versionreturnedrustc 1.100.0 (0ef1bc386 2026-11-09).dxc.exe --versionreturneddxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47).d32f5a2afb82dce7ba377a5f84d49772c785329f.Commands and results
cargo test --workspace --no-runexited 0 in the unoptimized test profile. It compiled the workspace test targets outside the Arc lock.crates/xclunder the Arc lock. It exited 0 in 2.42 s of harness time with 2 passed / 0 failed / 0 ignored / 0 skipped.Observed behavior
XCL reported the real D3D12 backend on Intel Arc A770. Both fixture tests passed. XCL and the host driver produced matching checked descriptor fields for eight valid buffer and texture cases, and both rejected the two invalid descriptors. The host returned
E_NOINTERFACEfor the unknown console IID and XCL successfully fell back toID3D12Resource.Not tested
Verification covered workspace test compilation and the focused GPU fixture. 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
pr1578-focused.logand published.@ivall on GitHub · 2026-11-25 19:21 UTC · original
Merging:
CreateCommittedResourceagainst 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.