Skip to content

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

Open
azsekazvamdimitar wants to merge 6 commits into
ProjectLeonida:mainfrom
azsekazvamdimitar:linux
Open

azsekazvamdimitar wants to merge 6 commits into
ProjectLeonida:mainfrom
azsekazvamdimitar:linux

Conversation

@azsekazvamdimitar

@azsekazvamdimitar azsekazvamdimitar commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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 6555c7c.

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 file_system: MAXIMUM_ALLOWED open of an overlay copy names read+write to the host (FS-MAXIMUM-ALLOWED-WINE) #977 covers.
  • dxgi_host_answers, dxgi_waitable_latency, xbox_present (and vk_presenter_sync alongside): pass on both, with the desktop unlocked (on 6555c7c 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.)

@abnalstlll-byte abnalstlll-byte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and verified. Pragmatic set of fixes resolving remaining test and runtime incompatibilities under Wine/Proton and winewayland. The std::runtime_error exception copy in main.cpp cleanly avoids Wine 11.0
ethrow_exception lifetime issues. Showing the swapchain window via SW_SHOWNOACTIVATE resolves Wayland present deadlocks. 100% clean-room compliant.

@azsekazvamdimitar

Copy link
Copy Markdown
Contributor Author

Rerun with the desktop unlocked, on 304c495 (main 42537e7), RTX 3090: vk_presenter_sync, dxgi_host_answers, dxgi_waitable_latency and xbox_present pass under WineHQ 11.22 (winewayland) and GE-Proton11-14 (winex11). The description is updated.

@github-actions github-actions Bot removed the needs rebase Conflicts with the base branch: rebase it on main label Nov 25, 2026
@aslan2142 aslan2142 added the needs rebase Conflicts with the base branch: rebase it on main label Nov 25, 2026
The check is a host Python script, so ctest does not put CMAKE_CROSSCOMPILING_EMULATOR in front of it and it
started the Windows vk_descriptor_bench and vk_sandbox directly: on a Linux cross build that is 'Exec format
error'. The emulator is now passed one word per --runner, as check_d3d12_trace.py takes it.

Tested: passes on the native Linux build, and on the clang-cl cross build under Wine 11.22 and GE-Proton11-14
(RTX 3090, NVIDIA 590.48.01). AI-assisted.
dxgi_host_answers and dxgi_waitable_latency presented to a window that was never shown. Under Wine's winewayland
the compositor never answers a FIFO present on an unmapped surface, so the first vsync present blocked in
vkQueuePresentKHR until the ctest timeout. Both now show the window without activating it, as
vk_presenter_sync_test does.

Depends on: ProjectLeonida#519 (dxgi_waitable_latency still compares against Wine's host DXGI without it).

Tested on the clang-cl cross build with ProjectLeonida#519 merged: both pass under WineHQ 11.22 (winewayland) and under
GE-Proton11-14 (winex11 through XWayland), RTX 3090, NVIDIA 590.48.01. AI-assisted.
…ay minimised

Under Wine's winewayland SW_MINIMIZE makes the window iconic only until the compositor's next configure: Wayland
has no minimised state, so Wine restores the window, the surface keeps its size and every present is shown. The
minimised case then failed on 'skipped_presents > 0' although the presenter did what the window reported. It
now reports that case as not checked when no present was skipped and the window is no longer minimised; the
restored half still runs.

Tested on the clang-cl cross build, RTX 3090, NVIDIA 590.48.01: WineHQ 11.22 with winewayland passes 5 of 5
under ctest (not checked); WineHQ 11.22 and GE-Proton11-14 with winex11 through XWayland still skip 2 of 3
presents and pass. AI-assisted.
Wine 11.0's rethrow_exception throws the stored object itself, which the exception_ptr local freed while the
throw unwound, so the fail_init case printed 'Unknown exception' instead of 'DllMain returned FALSE'.

Tested on the clang-cl cross build, RTX 3090, NVIDIA 590.48.01: passes under WineHQ 11.22 and GE-Proton11-14. AI-assisted.
d3d12_clear and d3d12_clear_formats compare with WARP, which under Wine is vkd3d and saturates out-of-range
integer clears differently; d3d12_pipeline_library_host compares with the host pipeline library, which
vkd3d-proton answers differently. The layer's own checks still run.

Tested on the clang-cl cross build, RTX 3090, NVIDIA 590.48.01: passes under WineHQ 11.22 and GE-Proton11-14. AI-assisted.
Under Wine a ReadFile into a reserve-only view succeeds, since Wine maps the view fully accessible, where
Windows answers ERROR_NOACCESS; and Wine's short search for *.?. lists mesh.txt, whose three-letter extension one
? cannot match, so it is no reference for the long listing there. The shim's side of both checks still runs.

Tested on the clang-cl cross build, RTX 3090, NVIDIA 590.48.01, under WineHQ 11.22 and GE-Proton11-14. AI-assisted.
@github-actions github-actions Bot removed the needs rebase Conflicts with the base branch: rebase it on main label Nov 26, 2026
@Tauwni

Tauwni commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Tested f23f13569, merged onto main fbf100b1b (it merges cleanly), on a Mac: Apple M3, macOS 26.5.1, Wine 11.0 (WineHQ macOS build, x86-64 under Rosetta, bundled MoltenVK 1.4.1). Cross-built with clang-cl/lld-link 23.1.6 and xwin's SDK 10.0.26100, ctest -j 6 --timeout 120 with ROSETTA_ADVERTISE_AVX=1.

The whole suite on main: 461 of 482 pass. The 21 that fail, rerun with this PR:

  • Fixed here (4): run_startup_cmdline, d3d12_clear, d3d12_clear_restricted_depth, d3d12_clear_formats.
  • vk_device_filter_tools still fails, for a Mac reason: with --runner the tools now run under Wine and refuse the filter, but Wine's MoltenVK logs [mvk-info] GPU device: at info level, which the "device:" in out check reads as a chosen GPU. Anchoring it fixes it here: re.search(r"^device:", out, re.M) (details in test: run the device-filter tools through wine on a non-Windows host (#1150) #1219, which has the same check).
  • Still failing, not touched by this PR or a Wine-on-macOS difference (17):
    • file_system: DeleteFileW, RemoveDirectoryW, SetFileAttributesW and MoveFileExW of a name below a file don't fail "as on the host", plus "host ReadFile into uncommitted pages fails with ERROR_NOACCESS".
    • bcrypt_rng and bcrypt_rng_seeded: Wine doesn't return STATUS_NOT_FOUND for an unknown algorithm.
    • gameinput_host: GameInputCreate gives 0x80004001 under Wine.
    • xmem, xmem_no_write_watch and xmem_write_watch: physical-page mapping is refused (error 87).
    • pipeline_workers: "run() rethrew no exception, or not the lowest job's".
    • root_sig, d3d12_uav_clear, d3d12_descriptor, d3d12_set_descriptor_heaps, pipeline_cache_seed, vk_presenter_sparse_capture, xbox_depth_storage and xbox_gpu_label_completion.

AI-assisted (Claude Code). No game data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants