mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #519] [MERGED] Tests: eight host-comparison tests skip Wine's host and still check the layer (TEST-WINE-HOST-GUARDS) #567
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#567
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/519
Author: @milk4sale
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:test/wine-host-guards📝 Commits (3)
ffce6b5Tests: eight host-comparison tests skip Wine's host and still check the layer (TEST-WINE-HOST-GUARDS)b358f47Tests: heap properties, residency and typeless depth check the layer on its own (TEST-WINE-HOST-GUARDS)e80697bTests: d3d12_heap_properties holds every output asked for to having been written (TEST-WINE-HOST-GUARDS)📊 Changes
8 files changed (+313 additions, -46 deletions)
View changed files
📝
runtime/test/d3d12_heap_properties_test.cpp(+101 -3)📝
runtime/test/d3d12_indirect_dispatch_count_test.cpp(+36 -20)📝
runtime/test/d3d12_noop_copy_test.cpp(+11 -5)📝
runtime/test/d3d12_residency_test.cpp(+78 -4)📝
runtime/test/d3d12_typeless_depth_test.cpp(+65 -5)📝
runtime/test/dxgi_host_parity_test.cpp(+4 -1)📝
runtime/test/dxgi_swapchain_test.cpp(+14 -6)📝
runtime/test/dxgi_waitable_latency_test.cpp(+4 -2)📄 Description
Claimed in the coordination issue as: TEST-WINE-HOST-GUARDS (claim)
What and why
Eight tests compare the layer with the host's D3D12/DXGI without the
runtime/test/host_wine.hguard the other host-comparison tests use. Under Wine that host is vkd3d and Wine's own DXGI, so all eight fail on its answers, and in three of them the layer's own checks never run:maind3d12_noop_copyd3d12_indirect_dispatch_countD3DCompilehas noRWByteAddressBuffer::InterlockedAdd(E5005), so the reference shader does not buildexpected(): passesd3d12_typeless_depth00 00 40/00 00 80 3efor depth 0.25, stencil5a)d3d12_residencyS_OKwhere the layer answersE_INVALIDARGd3d12_heap_propertiesdxgi_swapchainCreateSwapChainForHwndanswers differ from Wine's DXGI, and the test returns before its own swap-chain checks; further on, Wine's DXGI reports a driver version of its own where the layer reports 0dxgi_host_paritywined3donGetBuffer(0, iid, null)dxgi_waitable_latencydxgionGetMaximumFrameLatency(null), after the layer's suite had passedThe guard is
hostwine::host_is_wine(), as in the other tests.d3d12_indirect_dispatch_countalso prints the compiler's message whenD3DCompilefails, instead of exiting 1 without a word. Tests only; no layer change.Not in this pull request:
d3d12_clearandd3d12_clear_formatsfail the same way under Wine (ind3d12_clear_formatsthe layer has the stencil values that were cleared and Wine's host reads 0), but #307 and #428 touch those files.Tested
Cross-built on Linux with clang-cl 23.1.4 and xwin (SDK 10.0.26100), run under wine-staging 11.21:
dxgi_host_parity). Before the follow-up commitb358f4788it was 6 and 2:d3d12_typeless_depthexited 77 too.ctest -j 4:main8f481cf16gives 244 passed, 23 failed, 32 skipped; this branch (onc023a365a) gives 250 passed, 15 failed, 34 skipped. The eight tests are the only ones whose result changed, and their sources are the same in both commits.host_is_wine()forced tofalseand the eight tests rebuilt, each fails as it does onmain(the same messages and mismatch counts, the same two fault addresses inwined3danddxgi), so the path Windows takes behaves as before.python -I scripts/check_no_game_data.pyon the eight files, andgit diff --check.b358f4788, after review:d3d12_heap_properties,d3d12_residencyandd3d12_typeless_depthcheck the layer by itself on every host, before any comparison, anddxgi_swapchainnames Wine as the reason it compared nothing. Controls onmain3ed8e50b7: a layer answeringE_FAILfor a buffer'sGetHeapPropertiesfails the first, a fence reaching 6 for 7 fails the second, and a flipped depth or stencil byte fails the third; withhost_is_wine()forced tofalsethe three pass their layer checks and then fail in the host comparison as onmain(44 mismatches, 14 mismatches, readback differs from WARP). The whole suite was not run again for this commit.e80697bab: the layer check ofd3d12_heap_propertiesalso holds every output asked for to having been written. With the layer leaving the two node masks unwritten,b358f4788passes ande80697babfails (62 wrong answers).Not run on Windows, and not built with MSVC: I have neither here. On Windows
host_is_wine()is false and each test takes the path it took before, except that since the follow-up three of them first run their layer checks; that part has not run on Windows.The 15 that still fail here are outside this change:
d3d12_clearandd3d12_clear_formats(above),d3d12_presentandxbox_present(a tiling compositor resizes their 320x240 window; both pass in a nested gamescope session),device_proxyanddevice_proxy_trace, and nine loader and shim tests.GPUs tested: NVIDIA GeForce RTX 4070 Ti, driver 620.70.06, Linux (CachyOS), through wine-staging 11.21
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.