[PR #1086] Tests and gta6rt: the Wine/Proton failures left after #519, #983, #913 and #977 (TEST-WINE-PROTON-LEFTOVERS) #1121

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

📋 Pull Request Information

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

Base: main ← Head: linux


📝 Commits (6)

  • f058cce vk_device_filter_tools: run the tools through the cross build's emulator
  • ed61f61 dxgi tests: show the window before presenting
  • 841b019 xbox_present: do not count skipped presents when the window cannot stay minimised
  • 9d8ecb9 gta6rt: keep a copy of the DllMain failure instead of an exception_ptr
  • d284a3b host comparisons: skip WARP references that are Wine's vkd3d
  • f23f135 file_system test: accept two host answers that are Wine's own

📊 Changes

10 files changed (+73 additions, -26 deletions)

View changed files

📝 runtime/CMakeLists.txt (+6 -1)
📝 runtime/src/main.cpp (+8 -4)
📝 runtime/test/check_device_filter_tools.py (+15 -9)
📝 runtime/test/d3d12_clear_formats_test.cpp (+2 -0)
📝 runtime/test/d3d12_clear_test.cpp (+4 -0)
📝 runtime/test/d3d12_pipeline_library_host_test.cpp (+5 -3)
📝 runtime/test/dxgi_host_answers_test.cpp (+7 -3)
📝 runtime/test/dxgi_waitable_latency_test.cpp (+7 -3)
📝 runtime/test/file_system_test.cpp (+10 -1)
📝 runtime/test/xbox_present_test.cpp (+9 -2)

📄 Description

Claimed in the coordination issue as: TEST-WINE-PROTON-LEFTOVERS (claim)

What and why

The runtime tests that still fail under Wine and Proton on main, apart from what #983, #913 and #977 cover. One commit per topic:

Commit Test What happens under Wine on main With this change
vk_device_filter_tools vk_device_filter_tools check_device_filter_tools.py runs the cross-built .exe directly, Exec format error on a Linux host The script takes --runner, and CMake passes CMAKE_CROSSCOMPILING_EMULATOR as the neighbouring tests do
gta6rt run_startup_cmdline (fail_init, Proton) gta6rt prints Unknown exception instead of DllMain returned FALSE: Wine 11.0's rethrow_exception throws the stored object itself, which the exception_ptr local frees while the throw unwinds main.cpp keeps a std::runtime_error copy and throws that
dxgi tests dxgi_host_answers, dxgi_waitable_latency The swapchain presents to a window that is never shown; under winewayland the first FIFO present never returns (timeout) The window is shown with SW_SHOWNOACTIVATE, as vk_presenter_sync does
xbox_present xbox_present Under winewayland SW_MINIMIZE holds only until the compositor's next configure (Wayland has no minimised state), so no present is skipped When no present was skipped and the window is no longer iconic, the minimised case says "not checked"; the restore half still runs. Under X11 it is checked as before (2 of 3 skipped)
file_system file_system The host's own answers: ReadFile into a reserve-only view succeeds, and Wine's short search for *.?. lists mesh.txt Expected host answer under Wine is success; the *.?. reference is skipped when the host lists mesh.txt. The shim's checks still run. The six MAXIMUM_ALLOWED failures are #977's
host comparisons d3d12_clear, d3d12_clear_formats, d3d12_pipeline_library_host The reference is Wine's vkd3d / vkd3d-proton: out-of-range integer clears saturate differently, SNORM -1 and D32S8 stencil differ; vkd3d-proton answers 23 pipeline-library cases differently host_wine.h skips the host reference under Wine; d3d12_clear still runs the layer's own check

Windows behaviour is unchanged except in gta6rt, where the same error is now thrown from a copy.

Tested

Cross-built on Linux (Debian 13, Docker Ubuntu 26.04) with clang-cl 21.1.8 and xwin (MSVC 14.44), rebased on main 6555c7c4f.

Under WineHQ 11.22 (winewayland) and GE-Proton11-14 (Wine 11.0, winex11 through XWayland, d3d12/dxgi from its vkd3d-proton and DXVK):

  • vk_device_filter_tools, d3d12_pipeline_library_host, run_startup_cmdline: pass on both; d3d12_clear, d3d12_clear_formats: skip on both. Natively on Linux vk_device_filter_tools passes too. Before the main.cpp change, run_startup_cmdline failed on GE-Proton (fail_init printed Unknown exception).
  • file_system: the two checks here pass (one SKIP line for *.?.) on both; the test still fails on the six MAXIMUM_ALLOWED checks, which #977 covers.
  • dxgi_host_answers, dxgi_waitable_latency, xbox_present (and vk_presenter_sync alongside): pass on both, with the desktop unlocked (on 6555c7c4f dxgi_waitable_latency timed out once under WineHQ, then passed 3 of 3 with --repeat until-fail:3). Under winewayland xbox_present prints the minimised case as not checked; under winex11 it is checked as before.
  • With the desktop session locked, the compositor sends no frame callbacks (winewayland) or throttles to about one frame a second (XWayland): the winewayland present tests then time out and xbox_present's 60 Hz timing check fails, with or without this branch.

GPUs tested: NVIDIA GeForce RTX 3090, driver 590.48.01, Linux 6.12 (KDE Plasma Wayland).

AI-assisted: yes (Claude).

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request. (One topic: the Wine/Proton failures of one run, one commit each.)
  • 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. (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/1086 **Author:** [@azsekazvamdimitar](https://github.com/azsekazvamdimitar) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `linux` --- ### 📝 Commits (6) - [`f058cce`](https://github.com/ubiquitarianism/leonida/commit/f058cce7d8c481cd20ff0ec1c346b6007fc05fc3) vk_device_filter_tools: run the tools through the cross build's emulator - [`ed61f61`](https://github.com/ubiquitarianism/leonida/commit/ed61f61acd63615bb8f99cc6c2b8cd1d9cf6e775) dxgi tests: show the window before presenting - [`841b019`](https://github.com/ubiquitarianism/leonida/commit/841b019aad7b5edf05d9a00a622be31bd3b853e1) xbox_present: do not count skipped presents when the window cannot stay minimised - [`9d8ecb9`](https://github.com/ubiquitarianism/leonida/commit/9d8ecb97f9a5e3c917c35d1e306fa3c1d2b26aec) gta6rt: keep a copy of the DllMain failure instead of an exception_ptr - [`d284a3b`](https://github.com/ubiquitarianism/leonida/commit/d284a3b149d4d543d58cfe4ff042f61ed15ac2be) host comparisons: skip WARP references that are Wine's vkd3d - [`f23f135`](https://github.com/ubiquitarianism/leonida/commit/f23f135699f3aac3a6daaa8d2613b8c3a210af3c) file_system test: accept two host answers that are Wine's own ### 📊 Changes **10 files changed** (+73 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `runtime/CMakeLists.txt` (+6 -1) 📝 `runtime/src/main.cpp` (+8 -4) 📝 `runtime/test/check_device_filter_tools.py` (+15 -9) 📝 `runtime/test/d3d12_clear_formats_test.cpp` (+2 -0) 📝 `runtime/test/d3d12_clear_test.cpp` (+4 -0) 📝 `runtime/test/d3d12_pipeline_library_host_test.cpp` (+5 -3) 📝 `runtime/test/dxgi_host_answers_test.cpp` (+7 -3) 📝 `runtime/test/dxgi_waitable_latency_test.cpp` (+7 -3) 📝 `runtime/test/file_system_test.cpp` (+10 -1) 📝 `runtime/test/xbox_present_test.cpp` (+9 -2) </details> ### 📄 Description Claimed in the coordination issue as: TEST-WINE-PROTON-LEFTOVERS ([claim](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7139622075)) ### What and why The runtime tests that still fail under Wine and Proton on `main`, apart from what #983, #913 and #977 cover. One commit per topic: | Commit | Test | What happens under Wine on `main` | With this change | |---|---|---|---| | `vk_device_filter_tools` | `vk_device_filter_tools` | `check_device_filter_tools.py` runs the cross-built `.exe` directly, `Exec format error` on a Linux host | The script takes `--runner`, and CMake passes `CMAKE_CROSSCOMPILING_EMULATOR` as the neighbouring tests do | | `gta6rt` | `run_startup_cmdline` (`fail_init`, Proton) | `gta6rt` prints `Unknown exception` instead of `DllMain returned FALSE`: Wine 11.0's `rethrow_exception` throws the stored object itself, which the `exception_ptr` local frees while the throw unwinds | `main.cpp` keeps a `std::runtime_error` copy and throws that | | `dxgi tests` | `dxgi_host_answers`, `dxgi_waitable_latency` | The swapchain presents to a window that is never shown; under winewayland the first FIFO present never returns (timeout) | The window is shown with `SW_SHOWNOACTIVATE`, as `vk_presenter_sync` does | | `xbox_present` | `xbox_present` | Under winewayland `SW_MINIMIZE` holds only until the compositor's next configure (Wayland has no minimised state), so no present is skipped | When no present was skipped and the window is no longer iconic, the minimised case says "not checked"; the restore half still runs. Under X11 it is checked as before (2 of 3 skipped) | | `file_system` | `file_system` | The host's own answers: `ReadFile` into a reserve-only view succeeds, and Wine's short search for `*.?.` lists `mesh.txt` | Expected host answer under Wine is success; the `*.?.` reference is skipped when the host lists `mesh.txt`. The shim's checks still run. The six MAXIMUM_ALLOWED failures are #977's | | `host comparisons` | `d3d12_clear`, `d3d12_clear_formats`, `d3d12_pipeline_library_host` | The reference is Wine's vkd3d / vkd3d-proton: out-of-range integer clears saturate differently, SNORM -1 and D32S8 stencil differ; vkd3d-proton answers 23 pipeline-library cases differently | `host_wine.h` skips the host reference under Wine; `d3d12_clear` still runs the layer's own check | Windows behaviour is unchanged except in `gta6rt`, where the same error is now thrown from a copy. ### Tested Cross-built on Linux (Debian 13, Docker Ubuntu 26.04) with clang-cl 21.1.8 and xwin (MSVC 14.44), rebased on `main` 6555c7c4f. Under WineHQ 11.22 (winewayland) and GE-Proton11-14 (Wine 11.0, winex11 through XWayland, `d3d12`/`dxgi` from its vkd3d-proton and DXVK): - `vk_device_filter_tools`, `d3d12_pipeline_library_host`, `run_startup_cmdline`: pass on both; `d3d12_clear`, `d3d12_clear_formats`: skip on both. Natively on Linux `vk_device_filter_tools` passes too. Before the `main.cpp` change, `run_startup_cmdline` failed on GE-Proton (`fail_init` printed `Unknown exception`). - `file_system`: the two checks here pass (one `SKIP` line for `*.?.`) on both; the test still fails on the six MAXIMUM_ALLOWED checks, which #977 covers. - `dxgi_host_answers`, `dxgi_waitable_latency`, `xbox_present` (and `vk_presenter_sync` alongside): pass on both, with the desktop unlocked (on 6555c7c4f `dxgi_waitable_latency` timed out once under WineHQ, then passed 3 of 3 with `--repeat until-fail:3`). Under winewayland `xbox_present` prints the minimised case as not checked; under winex11 it is checked as before. - With the desktop session locked, the compositor sends no frame callbacks (winewayland) or throttles to about one frame a second (XWayland): the winewayland present tests then time out and `xbox_present`'s 60 Hz timing check fails, with or without this branch. GPUs tested: NVIDIA GeForce RTX 3090, driver 590.48.01, Linux 6.12 (KDE Plasma Wayland). AI-assisted: yes (Claude). ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [ ] One topic; follow-up work goes in a new pull request. (One topic: the Wine/Proton failures of one run, one commit each.) - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (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#1121
No description provided.