Repository navigation
Tests: compare CreateCommittedResource against the host D3D12 driver - #1578
Conversation
Adds host-driver parity integration tests for ID3D12Device::CreateCommittedResource (slot 27, Part of xcl-dev#480) comparing buffers, 2D/3D/RT/DS textures, invalid descriptors, and unknown console IID fallback against the unhooked PC driver on the same adapter. Verified with cargo test -p xcl --test d3d12_create_committed_resource -- --test-threads=1 (2 passed, 0 failed on NVIDIA GeForce GTX 1660 SUPER). Assisted-by: Antigravity (Gemini 4 Neon)
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
With vkd3d-proton as the host, one of the two tests fails here: on the host's answer, not on XCL's. Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Empirical test report (d32f5a2)Hardware / environment
Commands and results
$pr1578Fixture = Join-Path $env:CARGO_TARGET_DIR 'debug\build\xcl\29ff96c0d616ff81\out\d3d12_create_committed_resource-29ff96c0d616ff81.exe'
& 'L:\XclTooling\Invoke-ArcTest.ps1' -Test {
$env:XCL_ADAPTER = 'A770'
$env:RUST_TEST_NOCAPTURE = '1'
& $pr1578Fixture --test-threads=1
} *>&1 | ForEach-Object { $_.ToString() } | Tee-Object -FilePath (Join-Path $env:TEMP 'pr1578-focused.log')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 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 |
|
Merging: Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug, AI use: Claude Code (Claude Opus 5.5) reviewed and tested this and wrote the comment on the maintainer's behalf. |
|
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. |
The host-driver tests of xcl-dev#1612, xcl-dev#1578 and xcl-dev#1613 required the driver to refuse invalid descriptions. vkd3d-proton accepts some of them, and XCL answers as it does, so the tests failed under Wine on the driver's answer and not on XCL's. They now compare XCL with the driver, and still require the refusal on Windows. The null-description step of xcl-dev#1608 does not run under Wine, where vkd3d-proton dereferences it and the process ends. The console heap tests of xcl-dev#1687 returned in silence without unified memory; they report a skip now.
Adds 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