tests: skip Wine's host comparisons where vkd3d answers differently #1035

Closed
YaBulochka wants to merge 4 commits from upstream-pr/1035 into main
YaBulochka commented 2026-11-24 17:06:04 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by YaBulochka on 2026-11-24T17:06:04Z.


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.)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5476764933 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1035). Originally posted by [YaBulochka](https://github.com/YaBulochka) on 2026-11-24T17:06:04Z. --- 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.)
MoonEyes commented 2026-11-28 17:57:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T17:57:49Z.


Hi @YaBulochka, thanks for this pull request. It currently conflicts with main (conflicting file(s): runtime/test/check_atexit.cmake), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7243422529 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1035#issuecomment-7243422529). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T17:57:49Z. --- Hi @YaBulochka, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `runtime/test/check_atexit.cmake`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-12-01 16:32:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:32:56Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7317789041 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1035#issuecomment-7317789041). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:32:56Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!1035
No description provided.