[PR #1035] tests: skip Wine's host comparisons where vkd3d answers differently #1070

Open
opened 2026-11-26 20:19:59 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1035
Author: @YaBulochka
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: fix/wine-host-comparisons


📝 Commits (4)

  • 8bb7c64 tests: skip the host D3D12 comparisons under Wine
  • be94dcd tests: skip the remaining host references under Wine
  • ddfcfdd tests: report Wine's GameInput stub and CRT as skips
  • ef9f2d3 ci: retrigger after queue stall

📊 Changes

6 files changed (+55 additions, -86 deletions)

View changed files

📝 runtime/CMakeLists.txt (+5 -1)
📝 runtime/test/check_atexit.cmake (+18 -4)
📝 runtime/test/d3d12_residency_test.cpp (+6 -78)
📝 runtime/test/d3d12_sampler2_test.cpp (+2 -1)
📝 runtime/test/device_proxy_test.cpp (+6 -0)
📝 runtime/test/gameinput_host_test.cpp (+18 -2)

📄 Description

Claimed in the coordination issue as: carried over from the closed original repository (branch fix/wine-host-comparisons); no new claim

Depends on: none. Overlaps #519 (d3d12_indirect_dispatch_count, d3d12_residency) and #983 (gameinput_host_test); the parts those PRs already carry can be dropped from this one.

What and why

Several runtime tests compare their answers with a host D3D12 device, which is Wine's vkd3d in a Wine prefix. vkd3d answers differently (it rejects the console device over its WARP stand-in, returns S_OK for invalid residency arguments, accepts an unknown CreateSampler2 flag) and the test then reports a layer bug where the host is the outlier. This branch makes those tests keep every check of the layer's own answers and skip the host reference under Wine:

  • device_proxy_test: Wine's vkd3d rejects D3D12XboxCreateDevice over its WARP stand-in, so the test exits 77 with the HRESULT;
  • d3d12_residency_test and d3d12_sampler2_test: the host edge-case answers are compared only off Wine;
  • d3d12_indirect_dispatch_count_test: Wine's d3dcompiler_47 cannot compile the WARP reference shader (no InterlockedAdd on RWByteAddressBuffer), so it reports a skip instead of a bare failure;
  • gameinput_host_test: Wine's GameInput.dll is a stub (E_NOTIMPL / E_FAIL), so the import binding is still checked and the stub's answers are not;
  • run_tiny_atexit: the guest runs on Wine's CRT, which already deviates in the native runs and runs no handler or destructor through --run, so the script reports a skip (77, plus SKIP_REGULAR_EXPRESSION for CMake versions that cannot exit 77 from a -P script); on Windows any difference still fails.

Windows behaviour is unchanged: every path is behind hostwine::host_is_wine() or behind the Wine-only skip.

Tested

Not built here (no Windows/Wine toolchain in this environment); the changes are guards and printouts, and host_wine.h is used exactly as the tests that already merged do. The suite that measured these skips on Proton 11.0 was 148 passed, 23 skipped, 0 failed, per the commit message; that run is the author's, not repeated in this environment.

AI-assisted: yes.

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. (Not applicable: no translator change.)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1035 **Author:** [@YaBulochka](https://github.com/YaBulochka) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/wine-host-comparisons` --- ### 📝 Commits (4) - [`8bb7c64`](https://github.com/ubiquitarianism/leonida/commit/8bb7c643690288e09d65734ddfb4cd69e94ed5c4) tests: skip the host D3D12 comparisons under Wine - [`be94dcd`](https://github.com/ubiquitarianism/leonida/commit/be94dcd357002f792b2a61aff3453a2dd3eb0a65) tests: skip the remaining host references under Wine - [`ddfcfdd`](https://github.com/ubiquitarianism/leonida/commit/ddfcfddf77fef2d5cac05c95acdc749170abf458) tests: report Wine's GameInput stub and CRT as skips - [`ef9f2d3`](https://github.com/ubiquitarianism/leonida/commit/ef9f2d33f3a88350de8a17ec1f655717cc9a1a13) ci: retrigger after queue stall ### 📊 Changes **6 files changed** (+55 additions, -86 deletions) <details> <summary>View changed files</summary> 📝 `runtime/CMakeLists.txt` (+5 -1) 📝 `runtime/test/check_atexit.cmake` (+18 -4) 📝 `runtime/test/d3d12_residency_test.cpp` (+6 -78) 📝 `runtime/test/d3d12_sampler2_test.cpp` (+2 -1) 📝 `runtime/test/device_proxy_test.cpp` (+6 -0) 📝 `runtime/test/gameinput_host_test.cpp` (+18 -2) </details> ### 📄 Description Claimed in the coordination issue as: carried over from the closed original repository (branch `fix/wine-host-comparisons`); no new claim Depends on: none. Overlaps #519 (`d3d12_indirect_dispatch_count`, `d3d12_residency`) and #983 (`gameinput_host_test`); the parts those PRs already carry can be dropped from this one. ### What and why Several runtime tests compare their answers with a host D3D12 device, which is Wine's vkd3d in a Wine prefix. vkd3d answers differently (it rejects the console device over its WARP stand-in, returns S_OK for invalid residency arguments, accepts an unknown `CreateSampler2` flag) and the test then reports a layer bug where the host is the outlier. This branch makes those tests keep every check of the layer's own answers and skip the host reference under Wine: - `device_proxy_test`: Wine's vkd3d rejects `D3D12XboxCreateDevice` over its WARP stand-in, so the test exits 77 with the HRESULT; - `d3d12_residency_test` and `d3d12_sampler2_test`: the host edge-case answers are compared only off Wine; - `d3d12_indirect_dispatch_count_test`: Wine's `d3dcompiler_47` cannot compile the WARP reference shader (no `InterlockedAdd` on `RWByteAddressBuffer`), so it reports a skip instead of a bare failure; - `gameinput_host_test`: Wine's `GameInput.dll` is a stub (`E_NOTIMPL` / `E_FAIL`), so the import binding is still checked and the stub's answers are not; - `run_tiny_atexit`: the guest runs on Wine's CRT, which already deviates in the native runs and runs no handler or destructor through `--run`, so the script reports a skip (77, plus `SKIP_REGULAR_EXPRESSION` for CMake versions that cannot exit 77 from a `-P` script); on Windows any difference still fails. Windows behaviour is unchanged: every path is behind `hostwine::host_is_wine()` or behind the Wine-only skip. ### Tested Not built here (no Windows/Wine toolchain in this environment); the changes are guards and printouts, and `host_wine.h` is used exactly as the tests that already merged do. The suite that measured these skips on Proton 11.0 was 148 passed, 23 skipped, 0 failed, per the commit message; that run is the author's, not repeated in this environment. AI-assisted: yes. ### Checklist - [x] 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. (Not applicable: no translator change.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1070
No description provided.