Repository navigation
Tests: compare CreatePlacedResource against the host D3D12 driver - #1608
Conversation
Add host D3D12 parity integration tests for ID3D12Device::CreatePlacedResource (slot 29), extending xcl-dev#480 without requiring retail game files or console DLLs: - Compare DEFAULT/UPLOAD/READBACK placed buffers (with Upload Map/Unmap write-read) against the unhooked PC driver on the same adapter. - Compare non-RT/DS textures (R8G8B8A8, BC1) and RT/DS textures (RTV/DSV with clear values) against the host driver. - Verify misaligned/out-of-bounds offset and null descriptor error parity, plus unknown console IID fallback to ID3D12Resource. Verified locally with: cargo test -p xcl --test d3d12_create_placed_resource -- --test-threads=1 (3 passed, 0 failed) Assisted-by: Antigravity (Gemini 4 Neon)
gut0to
left a comment
There was a problem hiding this comment.
The targeted parity tests are clear. One CONTRIBUTING.md requirement is still missing from Tested: the full workspace test suite on a GPU, with pass/fail/ignored and skipped-test details. This is a test-only PR, so the retail-title smoke run is waived, but the suite requirement still applies. Please add its result before merge; if it was not run, say so under Not tested. AI-assisted review; I checked this against the project guide.
|
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, the error test ends the test process: vkd3d-proton crashes on the null-descriptor call. Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Empirical test report (19a7416)Hardware / environment
Commands and results
Observed behavior
Not tested Only the focused integration target ran after workspace compilation. 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. vkd3d-proton dereferences the null description and the test process ends; #2466 runs that step on Windows only. 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.
What is in it
ID3D12Device::CreatePlacedResource(slot 29), Part of Tests: compare the D3D12 answers with the host driver on the same machine (no console files needed) #480:DEFAULT,UPLOAD, andREADBACKheaps (includingMap/Unmapround-trip) against the unhooked host driver.R8G8B8A8_UNORM,BC1_UNORM, RTV, and DSV textures against the host driver.ID3D12Resource.Tested
cargo test -p xcl --test d3d12_create_placed_resource -- --test-threads=1: 3 passed, 0 failedcargo test --workspace -- --test-threads=4: 779 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