Tests: compare CreatePlacedResource against the host D3D12 driver #1598
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1608"
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 OtavioTadeu on 2026-11-24T18:14:06Z.
What is in it
ID3D12Device::CreatePlacedResource(slot 29), Part of #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
Imported from ivall/xcl. Originally posted by gut0to on 2026-11-24T18:23:46Z.
Review: COMMENTED
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.
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T18:55:53Z.
Full-suite run, since this PR has no test report yet. Tested exact head
19a7416(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: 778 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.create_placed_buffers_match_host_driver,create_placed_textures_match_host_driver,create_placed_errors_and_console_iid_fallback.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 779 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
Imported from ivall/xcl. Originally posted by JoaoPauluu on 2026-11-24T19:04:38Z.
With vkd3d-proton as the host, the error test ends the test process: vkd3d-proton crashes on the null-descriptor call.
Tested
4522cc1a) from #257 as the host D3D12. Release, cross-built forx86_64-pc-windows-gnu.19a7416as it is (based on9e3831e), no uncommitted changes.d3d12_create_placed_resourceruns under Wine, one test per process (--exact).create_placed_buffers_match_host_driver: ok.create_placed_textures_match_host_driver: ok.create_placed_errors_and_console_iid_fallback: the process ends with no result line (exit 5, about 1 s).0x100and0x400000) return0x80070057from both the hook and the host, as the test expects. The process ends duringCreatePlacedResourcewith a nullpDesc. With the host called first, it ends in the host's call, before XCL's hook is reached. So it is vkd3d-proton that dereferences the null descriptor, and on this host the null-desc step cannot run. The console-IID fallback part after it was not reached.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T20:30:15Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.Thanks!
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:14:42Z.
Empirical test report (
19a7416f)Hardware / environment
19a7416ff2e3b8bb2cebdac785da06ef6dfc6de7. Unoptimized Rust test profile.rustc 1.100.0 (0ef1bc386 2026-11-09)dxcompiler.dll: 1.9(5512-01b62ad4)(1.9.2609.5) - 1.9.2609.5 (01b62ad47).Commands and results
cargo test --workspace --no-runexited 0 and built the workspace test targets.cargo test -p xcl --test d3d12_create_placed_resource --no-runexited 0 and confirmed the focused executable was ready before acquiring the shared Arc lock.Invoke-ArcTest.ps1 -TestwithXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. Inside the lock,cargo test -p xcl --test d3d12_create_placed_resource -- --nocapture --test-threads=1exited 0 with 3 passed / 0 failed / 0 ignored / 0 skipped. Libtest reported 0 filtered out and 0.69 s. The log contained noSKIPPEDlines.Observed behavior
E_NOINTERFACEand XCL returned anID3D12Resourcewith the expected descriptor.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
pr1608-focused.logand published.Imported from ivall/xcl. Originally posted by ivall on 2026-11-25T19:21:00Z.
Merging:
CreatePlacedResourceagainst 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.
Imported from ivall/xcl. Originally posted by ivall on 2026-11-25T19:32:32Z.
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.
xcl shaders --precompile --only cs --pipelines: access violation in dxcompiler.dll with parallel DXC compiles, not with XCL_DXC_THREADS=1 #2741