Repository navigation
Tests and gta6rt: the Wine/Proton failures left after #519, #983, #913 and #977 (TEST-WINE-PROTON-LEFTOVERS) - #1086
azsekazvamdimitar wants to merge 6 commits into
Conversation
abnalstlll-byte
left a comment
There was a problem hiding this comment.
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.
0b56335 to
304c495
Compare
304c495 to
02086b0
Compare
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.
02086b0 to
f23f135
Compare
|
Tested The whole suite on
AI-assisted (Claude Code). No game data. |
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:mainvk_device_filter_toolsvk_device_filter_toolscheck_device_filter_tools.pyruns the cross-built.exedirectly,Exec format erroron a Linux host--runner, and CMake passesCMAKE_CROSSCOMPILING_EMULATORas the neighbouring tests dogta6rtrun_startup_cmdline(fail_init, Proton)gta6rtprintsUnknown exceptioninstead ofDllMain returned FALSE: Wine 11.0'srethrow_exceptionthrows the stored object itself, which theexception_ptrlocal frees while the throw unwindsmain.cppkeeps astd::runtime_errorcopy and throws thatdxgi testsdxgi_host_answers,dxgi_waitable_latencySW_SHOWNOACTIVATE, asvk_presenter_syncdoesxbox_presentxbox_presentSW_MINIMIZEholds only until the compositor's next configure (Wayland has no minimised state), so no present is skippedfile_systemfile_systemReadFileinto a reserve-only view succeeds, and Wine's short search for*.?.listsmesh.txt*.?.reference is skipped when the host listsmesh.txt. The shim's checks still run. The six MAXIMUM_ALLOWED failures are #977'shost comparisonsd3d12_clear,d3d12_clear_formats,d3d12_pipeline_library_hosthost_wine.hskips the host reference under Wine;d3d12_clearstill runs the layer's own checkWindows 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
main6555c7c.Under WineHQ 11.22 (winewayland) and GE-Proton11-14 (Wine 11.0, winex11 through XWayland,
d3d12/dxgifrom 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 Linuxvk_device_filter_toolspasses too. Before themain.cppchange,run_startup_cmdlinefailed on GE-Proton (fail_initprintedUnknown exception).file_system: the two checks here pass (oneSKIPline 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(andvk_presenter_syncalongside): pass on both, with the desktop unlocked (on 6555c7cdxgi_waitable_latencytimed out once under WineHQ, then passed 3 of 3 with--repeat until-fail:3). Under winewaylandxbox_presentprints the minimised case as not checked; under winex11 it is checked as before.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
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (No translator change.)