Repository navigation
Conversation
lixonik
left a comment
There was a problem hiding this comment.
The Wine routing itself worked in an independent WSL run at 9a043734. All seven launcher unit tests passed. A synthetic executable wrapper also received all three calls in order: device listing, filtered benchmark, and filtered sandbox. The filter was cleared for enumeration and set for both probes.
One gap remains in the documented Proton cross-build. The CTest registration launches host Python and does not forward CMAKE_CROSSCOMPILING_EMULATOR. With the three arguments from that registration and no plain wine on PATH, the checker exited 77 while a working custom loader was available at a separate path. Passing that same loader through LEONIDA_WINE made it exit 0. The documented Proton setup configures the CMake emulator.
Could the test pass the configured emulator and its arguments through to the checker? #1086 has a --runner pattern for this test. Autodetection can still serve direct invocations.
AI-assisted. Synthetic executables and launcher, CPU only.
|
Tested 9a04373 under Wine 10.0 on Linux, GTX 1050 Ti (NVIDIA 555.58), against the real Windows cross-build tools (clang-cl + xwin)
I had opened #1618 for the same fix without seeing this one; closing it in favour of this PR. AI-assisted. Recommendation: Merge |
|
Tested on a Mac: Apple M3, macOS 26.5.1, with Wine 11.0 (the WineHQ macOS build, x86-64 under Rosetta, with its bundled MoltenVK 1.4.1).
The tools print their own pick at the start of a line ( if code == 0 or not named or re.search(r"^device:", out, re.M):The unchanged script also passes with #1086 carries the same AI-assisted (Claude Code). No game data. |
Claim: #14 (comment) (ID
VK-DEVICE-FILTER-WINE; from #1150)vk_device_filter_toolsruns a host Python that startedvk_descriptor_bench.exedirectly, so a ctest run on Linux gotOSError: [Errno 8] Exec format error(PierreEbele, #1150) -- a runner bug, not a tool bug: the tools are right to be Windows executables, and the test passes natively here.Change
runtime/test/check_device_filter_tools.py: onelauncher()picks the prefix a tool runs with --[]on Windows and for a non-PE,winewhen the target starts withMZon any other host, withLEONIDA_WINEnaming another loader. It is applied to both tools, not only the one that lists devices. When the host is not Windows and the loader is not onPATH, the script exits 77 withSKIP: ... <loader> is not on PATHinstead of reporting the Exec format error as a failure. Native Windows is unchanged.tests/test_check_device_filter_tools.pycovers the choice itself (Windows direct, PE through wine, non-PE direct, no loader still names one, the override, a missing tool, and the 77 path throughmain), so the branch runs on Windows CI where wine is absent.Tested
ok: vk_descriptor_bench refuses .../ok: vk_sandbox refuses ..., exit 0 -- unchanged from before.python -I tests/test_check_device_filter_tools.py-> OK (7 tests);compileall-> 0;check_no_game_data.py-> exit 0.Not run: a Wine host (none here). The launcher branch is covered by the unit test, not by a real Wine launch.
GPUs tested: NVIDIA GPU (Pascal class, 4 GB), driver 582.28, Windows 10 19045 for the native run.
AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash)
Checklist