Repository navigation
tests: D3D12 host comparisons skip under Wine (TEST-105 follow-up) - #1343
Conversation
The host-comparison tests added since ItsNotRexed#869 create their host devices with D3D12CreateDevice themselves, so copycmp::try_create_host's Wine check never reached them. Under Wine the reference is vkd3d, not Microsoft's runtime, and they failed on a real GPU for that reason alone. runtime/test/host_wine.h has the same check (ntdll's wine_get_version) for them. Under Wine: - d3d12_fence_events, d3d12_query_rules: the layer's own expectations still run; only the host references are skipped. - d3d12_depth_resolve: the layer is still checked against the clears; a host reference is no longer required. - d3d12_resource_desc, d3d12_node_mask, d3d12_copy_xfmt, d3d12_typeless_rtv, d3d12_predicated_copy: every case compares with the host (or WARP), so they exit 77, which ctest already reads as a skip. Windows runs them all as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51, llvm-mc 23.1.6): pass. |
|
Tested 806ee52 on native Windows 11 build 26200, RTX 4070 SUPER (616.92): pass. Built with MSVC 19.44 and Windows SDK 10.0.26100.0 via CMake/Ninja. All eight modified CTest targets ran and passed with Vulkan and synchronization validation enabled: d3d12_fence_events, d3d12_predicated_copy, d3d12_typeless_rtv, d3d12_depth_resolve, d3d12_resource_desc, d3d12_node_mask, d3d12_copy_xfmt, and d3d12_query_rules. This verifies that the Wine checks leave the native host comparisons running. Synthetic fixtures only. AI-assisted testing. |
#1343) Under Wine with a Vulkan GPU both failed instead of skipping: - d3d12_stencil_copy: its ctest entry sets LEONIDA_HOST_ADAPTER=warp, and copycmp::create_host exits 1 when that adapter isn't there, which under Wine it never is. - d3d12_rgb96: Wine 11 has a WARP adapter (vkd3d), so the 'no WARP' skip doesn't fire and the test compares against vkd3d's footprints. Both now return 77 when the host D3D12 is Wine's, as the other host comparisons do since #1343. Windows is unchanged. AI-assisted (Claude Code).
Claimed in the coordination issue as: new TEST item, a TEST-105 (#869) follow-up (claim; no item ID yet)
What and why
#869 made the D3D12 tests skip their host comparisons under Wine through
copycmp::try_create_host. The host-comparison tests added since then create their host devices withD3D12CreateDevicethemselves, so that check never reaches them. Under Wine the reference is vkd3d, not Microsoft's runtime. On a real GPU, eight tests failed for that reason alone: vkd3d accepts copies WARP refuses, reports other heap flags and alignments, and lets a resolve differ from the clears.runtime/test/host_wine.his the same check (ntdll'swine_get_version) for tests that make their own host devices. Under Wine:d3d12_fence_events,d3d12_query_rulesd3d12_depth_resolved3d12_resource_desc,d3d12_node_mask,d3d12_copy_xfmt,d3d12_typeless_rtv,d3d12_predicated_copyWindows runs them all as before: the check is false there. The CI
winejob runs these without a GPU, so this matters most for runs on a real GPU under Wine or Proton.Left alone on purpose:
device_proxy_test.cpp, which #1270 and #1325 edit (on Wine 11.22 Staging there is a WARP adapter, butD3D12CreateDeviceon it returnsE_INVALIDARG, so its "no WARP" skip doesn't trigger), andd3d12_fence_timing(#1278). This touchesd3d12_copy_xfmt_test.cppin a different hunk from #1324.Tested
AI-assisted (Claude Code). AMD Radeon RX 9060 XT (RDNA4), Mesa 27.0.0-devel RADV, Fedora 44. Windows runtime cross-compiled with clang-cl 22.1.8 + xwin (SDK 10.0.26100) and run under Wine 11.22 (Staging), serial ctest.
fence_events,depth_resolve,query_rules) and 5 skip, against 8 failures on mainc0ac5fd. The passing ones still do work:depth_resolvechecks the layer against the clears (9 refusals kept the destination),fence_eventsruns the layer's expectations, andquery_ruleschecks the layer's own refusals.device_proxy(above), andfsr_dispatch,bvh_builderandd3d12_descriptor, which don't build with clang-cl 22 (BUILD-356: docs/testing: clang-cl 22.1.x internal compiler error in fsr_dispatch and bvh_builder tests #1335 / BUILD-356, TEST-189).wine_get_version, which Windows' ntdll doesn't export.Checklist
docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code