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

Closed
leonida/mandy
YaBulochka wants to merge 0 commits from fix/wine-host-comparisons into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

YaBulochka commented 2026-11-24 17:06:04 +00:00

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.)
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

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).

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

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.

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.
Sign in to join this conversation.
No description provided.