Skip to content

tests: D3D12 host comparisons skip under Wine (TEST-105 follow-up) - #1343

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
LloydNicholson:tests/wine-host-skip
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
LloydNicholson:tests/wine-host-skip

Conversation

@LloydNicholson

Copy link
Copy Markdown
Contributor

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 with D3D12CreateDevice themselves, 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.h is the same check (ntdll's wine_get_version) for tests that make their own host devices. Under Wine:

Test 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 their ctest entries already read as a skip.

Windows runs them all as before: the check is false there. The CI wine job 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, but D3D12CreateDevice on it returns E_INVALIDARG, so its "no WARP" skip doesn't trigger), and d3d12_fence_timing (#1278). This touches d3d12_copy_xfmt_test.cpp in 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.

  • The eight tests: 3 pass (fence_events, depth_resolve, query_rules) and 5 skip, against 8 failures on main c0ac5fd. The passing ones still do work: depth_resolve checks the layer against the clears (9 refusals kept the destination), fence_events runs the layer's expectations, and query_rules checks the layer's own refusals.
  • Full Windows ctest under Wine: 4 failures, against 13 on main. The remaining four: device_proxy (above), and fsr_dispatch, bvh_builder and d3d12_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).
  • Not run on Windows. The new branches are all gated on wine_get_version, which Windows' ntdll doesn't export.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator change)

🤖 Generated with Claude Code

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>
@kapitche

Copy link
Copy Markdown
Contributor

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. ctest: all pass on the RTX 4080 SUPER (65–66). The Intel UHD 770 failures are the known ones (vk_binary_occlusion fixed by #1321, d3d12_vulkan_device fixed by merged #1285, d3d12_descriptor min-LOD, d3d12_copy_xfmt).

@mrb-eel

mrb-eel commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

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.

@ItsNotRexed
ItsNotRexed merged commit 8a84d14 into ItsNotRexed:main Nov 22, 2026
ItsNotRexed pushed a commit that referenced this pull request Nov 22, 2026
#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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants