Repository navigation
Conversation
…st comparison Under Wine, EnumWarpAdapter answers with vkd3d on the GPU, not Microsoft's WARP, so d3d12_clear compared the layer against the GPU driver's rounding of 0.5 ties, its out-of-range integer clears and its stencil readback, and failed on cases where the layer matches WARP (ProjectLeonida#521). Like the other host comparisons under Wine (ProjectLeonida#6500 for d3d12_clear_formats), the test now runs every clear on the layer, still fails on a layer readback failure or a new Vulkan validation error, and exits 77 (skip) instead of comparing. Finding by best2135 (ProjectLeonida#7599). Tested under Wine 11.22, RTX 3070. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Verified head
AI-assisted. |
|
Independent build + test (native Windows control): PASS AI-assisted (Claude Code). Windows 11 x64 (native, not Wine), MSVC 19.44.35220, Ninja RelWithDebInfo, NVIDIA GeForce RTX 3080 driver 621.24 / 32.0.16.2124, WARP as the reference. Head
On native Windows Note: under Wine the |
|
Tested d071ddb under Wine on Linux, NVIDIA RTX 3070 Ti and AMD RADV (Raphael iGPU): pass.
So this gives the Linux and Wine evidence the earlier checks didn't have. I didn't need #8115 or #7638 for it: this head alone turns the test from failed to skipped here. Setup: CachyOS Linux 7.3.1, Wine 11.21, runtime cross-built with clang-cl 23.1.4 and the xwin SDK 10.0.26100 ( AI-assisted: yes. Claude Code ran these tests on my machine and wrote this summary. |
crastinator
left a comment
There was a problem hiding this comment.
Tested d071ddb8d under Wine on a real AMD GPU: d3d12_clear passes, no new failures.
AMD Radeon RX 6700 XT (gfx1031), RADV Mesa 26.3.1, CachyOS Linux 7.3.5 (niri, XWayland). The Windows runtime is cross-built with clang-cl + xwin, merged onto main 867d922f0, and the full ctest (271 tests) is diffed against main under three Wines: WineHQ 11.22, Proton CachyOS 11.0 (cachyos-11.0-20261015-slr; vkd3d-proton 0bb64c5, DXVK 3.1.1-97) and Proton Experimental 11.0 (experimental-11.0-20261112; vkd3d-proton 2576c0b, DXVK 3.1.1-209). The Proton runs use files/bin/wine with a proton run-made prefix and WINEDLLOVERRIDES="d3d12=n;d3d12core=n;dxgi=n", as in docs/testing.md.
- WineHQ 11.22:
d3d12_clearfixed (17 failed vs 18 onmain), nothing new. - Both Protons:
d3d12_clearalready passes there onmain(DXVK's DXGI), and still does with this PR.
AI-assisted (Claude Code). Synthetic fixtures only, no game files.
|
Tested d071ddb on NVIDIA GeForce RTX 4070, driver 610.57.04, CachyOS Linux, Wine 11.20 (real Hyprland session; Windows runtime cross-compiled with clang-cl 23.1.3 + xwin SDK 10.0.26100): pass. |
Claimed in #8683 (#8683 (comment)). Finding and fix idea by @best2135 in #7599 (#7599 (comment)).
What and why
Under Wine,
EnumWarpAdapteranswers with vkd3d on the GPU, not Microsoft's WARP.d3d12_cleartherefore compared the layer with the GPU driver's results where WARP's are defined, and failed on cases where the layer matches WARP (it has since #521):R8G8_UINT case 3 byte 13: Vulkan ff, WARP 00).#8115 and #7638 skip only when no WARP device can be created. That covers Wine 10.0, which has no WARP adapter (#8115 measured Failed -> Skipped there), but Wine 11.22 answers
EnumWarpAdapterwith vkd3d, so the comparison runs and fails: with #8115 merged locally,d3d12_clearstill fails here. The same happens under Proton (vkd3d-proton), as GeremC noted in #166.Change
runtime/test/d3d12_clear_test.cpponly, the same pattern as #6500 ford3d12_clear_formats: underhostwine::host_is_wine()the test creates no host device, runs every colour, castable-format, depth/stencil and D3D-437 clear on the layer, still fails on a layer clear/readback failure or a new Vulkan validation error, and exits 77 (ctest: skipped; the test is already registered withSKIP_RETURN_CODE 77).--volumeskips under Wine;--rgb9e5doesn't touch the host and is unchanged. Nothing changes on Windows.Tested
Linux Mint 22.2, Wine 11.22, NVIDIA GeForce RTX 3070 (driver 595.91.07, no Resizable BAR), runtime cross-built with clang-cl 21.1.8 + xwin 0.10.0 (SDK 10.0.26100):
dde82f27e; the test file is unchanged on867d922f0):d3d12_clearFailed ("20 color/depth format(s) differ from WARP": 18 colour, D16_UNORM, D32_FLOAT_S8X24_UINT stencil)867d922f0):d3d12_clearSkipped; 232 clears ran on the layer without a readback failure or validation errord3d12_rgb9e5_rtvunchanged (Skipped: no RGB9E5 render targets on this adapter)Not tested on Windows (no Windows machine); the Windows path only gains
!wine &&guards that are true there.Possible conflicts: #8115 and #7638 edit the same
WARP reference unavailableblock; whichever lands second needs a trivial rebase.AI-assisted (Claude Code, Claude Opus 5.5).