Repository navigation
Linux: docs/linux.md, scripts/linux and Wine start-up checks for vkd3d-proton and DXVK (#154, #241) - #257
Linux: docs/linux.md, scripts/linux and Wine start-up checks for vkd3d-proton and DXVK (#154, #241)#257simnJS wants to merge 3 commits into
Conversation
|
Thanks for writing this up. Two points from runs here (Ubuntu 24.04 in a container, kernel 7.0, RTX 5060 Ti):
AI-assisted (Claude Code, Claude Opus 5.5). |
|
Reviewed and live-tested commit Tested
Findings
Not tested
AI useReviewed and written with Antigravity (Gemini frontier model); every file/line cited and every live check was directly verified on this host. |
|
Thanks, both points are in, squashed into the PR's commit (15d659e, rebased on main):
|
|
Windows run of head Tested
Not tested
AI use
|
|
@ersinhf thank you – that covers the Windows side I could not run: the whole suite on |
…3d-proton and DXVK - docs/linux.md: cross-build, DXC, Wine choice, prefix, patched vkd3d-proton, DXVK, running, known state - scripts/linux: vkd3d-proton v3.1 patch and build, prefix setup, run - preflight (Wine only): error when d3d12core.dll holds vkd3d-proton's heap vtable assertion (ivall#241), warning when dxgi.dll is not DXVK's
Wine and Proton have no MSOpusDecoder.dll, so with ivall#294 XCL loads libopus from an opus.dll there. build-opus.sh downloads the official libopus 1.5.2 release, checks its SHA-256 and builds opus.dll with mingw-w64; docs/linux.md says where to put it (XCL_OPUS_DIR or next to xcl.exe) and how to tell which decoder xcl.log reports.
scripts/smoke.ps1 needs Windows (Start-Process, Get-CimInstance), so a contributor on Linux cannot make the xcl-smoke blocks a PR that changes the runtime needs. smoke.sh runs the title the same way under Proton's Wine (XCL_RUN_SECONDS, XCL_ACTIVITY, networking off), reads XCL's log and prints the same block; the GPU name comes from the log, and peak commit reads 0 under Wine. docs/linux.md says how to use it.
Running XCL on Linux under Wine + vkd3d-proton: a setup a contributor can follow, built from the findings in #175 and from runs on Linux, and a start-up message for the vkd3d-proton assertion players hit (#241). Part of #154.
What is in it
docs/linux.md: cross-build forx86_64-pc-windows-gnu, DXC, which Wine (one with kernel write watches – Proton's – or vkd3d-proton silently gives the GPU its own copy of unified memory), vkd3d-proton v3.1 rebuilt with-Db_ndebug=trueplus a 6-line patch to the twofrom_ifacelookups,VKD3D_CONFIG=ignore_shared_fence, DXVK'sdxgi/d3d11/d3d10core, prefix, running, known state.scripts/linux/:vkd3d-proton-xcl.patch,build-vkd3d-proton.sh,setup-prefix.sh,run.sh(XCL_NETWORK=0by default).crates/xcl/src/preflight.rs: under Wine only, an error when the loadedd3d12core.dllholds vkd3d-proton'siface->lpVtbl == &d3d12_heap_vtblassertion (VKD3D Assertion - "iface->lpVtbl == &d3d12_heap_vtbl" #241), a warning whendxgi.dllis not DXVK's (presenting crashes in wined3d, Linux (Wine + vkd3d-proton): a retail game reaches whatmainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175).tests/testgamedll/Cargo.toml:test = false,doctest = false– its test harness importskernelx.dlland cannot start on the GNU target; the crate has no tests.scripts/linux/build-opus.sh+ an "Opus" section indocs/linux.md(second commit): builds libopus 1.5.2 as theopus.dllthat xapu: decode the title's Opus packets and play them on the PC (GTA VI's sound) #294 loads where Windows has no Opus decoder (Wine), checked against its SHA-256.scripts/linux/smoke.sh+ a "Regression runs" section indocs/linux.md(third commit):smoke.ps1's regression run andxcl-smokeblock under Wine, for contributors without Windows.README.md: one line pointing todocs/linux.md;THIRD_PARTY.md: the patch (LGPL-2.1, patch only, vkd3d-proton is not distributed).The vkd3d-proton build is a workaround: the fix is proxies for the host's objects (#175), and the doc says so.
Tested
x86_64-pc-windows-gnu.cargo build --workspace --all-targets --locked --target x86_64-pc-windows-gnu;bash -nandshellcheckon the scripts.scripts/linux/run.sh: starts and runs at ~30 fps, picture black as reported in Linux (Wine + vkd3d-proton): a retail game reaches whatmainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175; no start-up message with the patched vkd3d-proton, the error with Proton's stock vkd3d-proton.Regression run
Made with
scripts/linux/smoke.sh(this PR:smoke.ps1's run and block under Wine), 50 s, on Ubuntu 26.04 / RTX 4080 SUPER, Proton Experimental 11.0's Wine, vkd3d-proton v3.1 + patch, DXVK 3.1.1. In both runs the account prompt was answered by hand with A and the title went to its "Brightness Level" screen; both ended by themselves (exit: 0x0). Under Wine XCL's end takes ~15 s afterXCL_RUN_SECONDS(its watchdog: suspending every thread also stops vkd3d-proton's), so the earlier 60 s blocks with a 10 s grace saidkilled.peak commitreads 0 under Wine.mainat4017f8f:This PR's head
463e2e1:Not tested
scripts/smoke.ps1were not run (no Windows machine); the regression blocks above come fromsmoke.shunder Wine. The preflight change only runs under Wine (util::under_wine); testgamedll has no tests.AI use