Docs: running under Wine/Proton on Linux (short notes) #2082
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2082
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2082"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@desplmfao on GitHub · 2026-11-25 04:28 UTC · original
desplmfao:docs/linux-wineserver→main· +71 −0 · 2 files · 18 commits · openWhat
docs/linux.md(53 lines): how testers run VIctory under Wine/Proton. It's marked unsupported.d3d12/d3d12core, and Microsoft'sd3dcompiler_47.dll.VICTORY_PIPELINE_JOURNALfrom #491, and the passes that time out, linked to where they are tracked.README.md: one line under Getting started linking to it.Why
The compiler point is the one that matters most and isn't written down anywhere else. Wine's builtin
d3dcompiler_47refuses VIctory's run-time helper shaders. Then every indirect draw and dispatch is dropped (no argument clamp: indirect execution dropped), and most of the world is not drawn. This is likely behind several Linux reports of a blue, white or empty picture. With Microsoft's DLL, the world is drawn.The wineserver patch is worth knowing about: a world frame goes from about 4 s to 1 s here (RTX 5080), and about 3 s to 1 s on an RX 9070 (measured by Beqren).
Changed after review
The first version also carried the Wine patch ports (about 540 lines, LGPL) and scripts that fetch and build Wine (
tools/wine/). Following the triage, those are out of the tree now. The doc links to notes kept outside the repository instead.Tested
The setup in the doc is what our runs use: RTX 5080, Linux, proton-cachyos 11.0 with Proton Experimental's vkd3d-proton 3.2.0.
cargo xtask policy: 183 files ok.AI-assisted (Claude Code).
🤖 Generated with Claude Code
@jeremygold02 on GitHub · 2026-11-25 04:39 UTC · original
Triage verdict — Keep the Proton guide, verify the source on rebuild (
5d192ed)Evidence
srcis absent. If the work directory already contains a checkout, a second invocation silently builds that checkout even when the arguments name a different release. Printing the protocol version makes it visible, but does not verify the requested source. Build script · Compatibility noteChecks and limits
Next step
This verification was AI-assisted.
@ajsem1337 on GitHub · 2026-11-25 05:05 UTC · original
Thanks, it's great to see someone take the idea further and actually find a use for it. That was the main point for me: that it helps further development.
No need for full credit on my side. The patch was written by Claude under my direction. A mention of me and @neonbyte1 is plenty; neonbyte1 ran tests and contributed to it as well. Keep the patch files in
tools/wine/for as long as they're useful.@Deilach on GitHub · 2026-11-25 05:13 UTC · original
Tested a different path, on AMD: CachyOS, RX 9070 XT (RDNA4), RADV (Mesa 26.3.1), system Wine 11.22 rather than Proton, with vkd3d-proton master. Here's what AMD users will hit that the doc could cover:
dxil-spirvmakes invalid SPIR-V for some world shaders: a loop exit that isn't a structured exit, whichspirv-valrejects. RADV then segfaults inradv_shader_spirv_to_nir, and the process ends with exit code 3 and no message. The fix is dxil-spirv's structurizer rewrite (71967a38, 2026-10-27). It's in vkd3d-proton master, but not yet in a release: the latest tag, v3.1 (2026-10-28), pins a dxil-spirv from 10-26. Building vkd3d-proton master fixed it here (meson setup --cross-file build-win64.txt --buildtype release build64 && ninja -C build64, then use itsd3d12.dll/d3d12core.dll). Is the "vkd3d-proton 3.2.0" in the doc a proton-cachyos build? There's no v3.2 tag upstream.d3dcompiler_47is Wine's too. Without them every indirect draw is dropped, and the world is mostly black. Until #1279 or #2093 lands:winetricks d3dcompiler_47, orprotontricks <appid> d3dcompiler_47.R10G10B10_XR_BIAS_A2_UNORM: #2101A DualSense under plain Wine needed winebus
DisableHidraw=1andEnable SDL=1here.Happy to send these as a follow-up PR to
docs/linux.mdafter this one lands, if you'd prefer that to folding them in.@desplmfao on GitHub · 2026-11-25 05:17 UTC · original
@Deilach thanks, that's a very useful set of notes. Please do send it as a follow-up PR to
docs/linux.mdonce this one lands. You measured it on AMD and I can't check any of it here, so it's better under your name than folded in by me.On the version: "vkd3d-proton 3.2.0" was the one bundled with proton-cachyos 11.0. It reports itself as
applicationVersion: 3.2.0, build2576c0b4adfae4a, not an upstream tag. The doc now says that (docs/linux.md, setup section).@desplmfao on GitHub · 2026-11-25 07:02 UTC · original
Correction to the setup section, now pushed: the tested
d3d12.dllandd3d12core.dllwere Proton Experimental 11.0's (vkd3d-proton 3.2.0,2576c0b4), placed next tovictory.exeand run with proton-cachyos 11.0. proton-cachyos 11.0 itself ships an older vkd3d-proton (3dfc6f07), which I haven't measured. I'd written that proton-cachyos ships2576c0b4, which was wrong. The doc now says this, and where to check a Proton's vkd3d-proton build (files/lib/wine/vkd3d-proton/version).@desplmfao on GitHub · 2026-11-25 08:05 UTC · original
Added an NVIDIA note to the setup section (
170e1ca): setVKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains.On this RTX 5080 (driver 615.71, vkd3d-proton 3.2.0), most runs used to stop at the start of the first mission. The kernel logged
NVRM: Xid 109 … CTX SWITCH TIMEOUT, the desktop stalled, and the title's watchdog ended the process withUnsignaled CrossQueueBarrierin its crash log. I bisected the stuck submission down to compute72f552f4553fb5f9: skipping it alone got into the world. With only the extension disabled (no skip), the same build reached the world and stayed there with no Xid. Testers found the same in #844 (RTX 5090) and #1528 (RTX 4070), where the raw access chains in this program's SPIR-V were the difference.@desplmfao on GitHub · 2026-11-25 09:18 UTC · original
Added in
fbc7944: under Wine, use Microsoft'sd3dcompiler_47.dll. Wine's builtinD3DCompilerefuses VIctory's run-time helper shaders (E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'), so the log saysno argument clamp: indirect execution droppedand every indirect draw and dispatch is skipped. That's most of the world, and likely why several Linux reports see only a blue or white picture. With the native DLL next tovictory.exeandd3dcompiler_47=n,b, the clamp and the other helpers compile (the clamp, compare and depth-plane errors all go away), and the world is drawn here. The description is updated too.@Beqren on GitHub · 2026-11-25 09:52 UTC · original
The Proton Experimental row, run with the title on AMD
On Valve's Proton Experimental
experimental-11.0-20261112(Wine 11.0) on an RX 9070 (RADV, Mesa 26.2.6, CachyOS), I replaced onlyfiles/bin/wineserverwith one built with the view-tree patch. A world frame went from 2.9-3.2 s (stock) to 0.7-1.0 s (patched), and the world was reached in about 35 s instead of 86 s. The full numbers are in my comment on #834.I used CachyOS/wine-cachyos#50 as published, which is neonbyte1's version without the
in_treeflag. This PR's-cachyos11file is the earlier variant with the flag. Both do the same lookups. #50 applied to Valve's tree with line offsets only.Some details for the Experimental section of
docs/linux.md:include/wine/server_protocol.hsays 930 and lacks the fsync requests, so the server does not compile from it.tools/make_requests(run byautogen.sh) regenerates it as 931. The stockntdll.socompares against that number, which you can confirm: With a prepared source directory that already has aconfigure,autogen.shis skipped, so the header there is worth checking.--disable-tests, and left inotify on, as the stock server has it. Built that way, its dynamic imports match the stock server's: libc only, GLIBC_2.38 at most. A full copy of the Proton directory (cp -a --reflink=auto) with onlyfiles/bin/wineserverreplaced also works as the "copy" step. Every file in it is real, so ntdll finds the new server.No game data.
Measured and written with an AI coding assistant (Claude Code) working on my machine; the numbers are from the runs described above.
@desplmfao on GitHub · 2026-11-25 10:01 UTC · original
@Beqren thank you, that's the row I couldn't test, and all three points are in
cea755b:build-wineserver.shnow takes a commit as well as a tag or branch. The Experimental instructions build from the Wine commit of the installed release (gh api "repos/ValveSoftware/Proton/contents/wine?ref=<tag>" --jq .sha), not the branch head.server_protocol.hwithtools/make_requestsand prints the version. Given the Proton directory as a fourth argument, it checks that version against the Proton'sntdll.soand stops on a mismatch. I used(cmp|mov) \$0x<version>,rather than a plain grep for the constant: here it gives 2 hits for the right version and 0 for the neighbours (a plain grep also hit 931 once).--disable-testsis added (inotify stays on), and the doc mentions the full-copy alternative (cp -a --reflink=autowith onlyfiles/bin/wineserverreplaced).Your RX 9070 numbers (2.9–3.2 s to 0.7–1.0 s per world frame, world in 35 s instead of 86 s) are in the Experimental section, credited to you.
Tested here: proton-cachyos 11.0 end to end (clone, patch, regenerate,
protocol 932 matches …/ntdll.so, build). The check rejects 931, and the commit-pinned fetch checks out the tag's commit. I haven't built Experimental itself here.@Marvisak on GitHub · 2026-11-25 10:31 UTC · original · edited 2026-11-26 01:20 UTC
Automated triage for the maintainers.
Needs work: needs the maintainer's decision (unchanged). Since
dc7f3ff, the only changes are to thed3dcompiler_47note indocs/linux.md(0644272,d6c3e4e). It now asks for a Windows 10/11 SDK build of the DLL and warns that winetricks' 6.3.9600 build lackscs_5_1. That matches the test report in the comments, andmaincompiles its helper shaders for that target (indirect.rs). The PR is still a README pointer plus a 69-line doc, with no code or scripts. It merges cleanly, and CI passes (check).What's left is not a code problem:
main(VICTORY_PIPELINE_JOURNALfrom #491, specific Proton/vkd3d-proton builds, a link to a contributor's fork).If a Linux note is wanted, the
d3dcompiler_47andVKD3D_DISABLE_EXTENSIONSlines are the most useful parts.Generated by Claude Code
@desplmfao on GitHub · 2026-11-25 10:37 UTC · original
Thanks for the triage, I've followed it. As of
2da4da7this PR is two files and 55 lines:docs/linux.mdis down to 53 lines: setup, NVIDIA notes, and the wineserver patch as links only (ajsem1337's comment in #340, Wine bug 60868, CachyOS/wine-cachyos#50).The point I'd most like to keep is Microsoft's
d3dcompiler_47.dll. Without it, Wine's compiler makes VIctory drop every indirect draw, and the world isn't drawn under Linux. If Linux is out of scope for the repo, that one line would still save people a lot of time, wherever it ends up.@slauko on GitHub · 2026-11-25 14:04 UTC · original
Three things every tester on Linux will hit that
docs/linux.mddoes not have yet — each with the log line that names it.1. The start screen waits for ever without a pad — it is a phantom pad. Under Wine, XInput can report a gamepad that never presses a button: here the keyboard interface of a Logitech G502 (an HID interface with
BTN_GAMEPAD,/dev/input/js0). The runtime gives the title its keyboard stand-in only while XInput has no pad at all (any_padincrates/victory-hle/src/modules/gameinput.rs). The log tells them apart:input device device=0 connected=trueis the phantom pad,device=4the stand-in.SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT=0000/0000keeps every pad from Wine's side, and Return goes through the start screen. (Zettrox/ztrx#2 documents this as a "known Wine gap".)2. Tools need a display too.
victory warmortranslate --pipelineswithWAYLAND_DISPLAYandDISPLAYboth unset gets no Vulkan surface extension:DxvkInstance::createInstance: Failed to create Vulkan instance, thenno host D3D12 device.warmstill translates, but under a key made without the device's facts (wave size, view limit), and the run never finds those entries — the cache is warm and cold at once. Start tools on an Xvfb like the run. WithWAYLAND_DISPLAYset and no X display, Wine opens on the tester's real desktop instead.3. Once the pipeline library works, the second launch hangs. With VIctory#1722 in (the empty library with a null blob; vkd3d-proton refuses the dangling one) the library is saved — and the next launch starts every pipeline the last run drew with early: 1,657 here. The title presented no frame after frame 32 and its watchdog ended it (
0xc0000005attitle+0x2215c35, 45 s). The same binary without the library ran the title screen at 30 fps.VICTORY_EARLY_PIPELINES=0(fxceless/victory-fork#845) has pipelines requested on first use, which loads them from the library all the same.Two smaller ones for the setup section:
ec20719on NVIDIA. Older builds still have dxil-spirv's legacy structurizer, and the driver crashes or hangs in the first world compute pipelines (fxceless/victory-fork#210). Proton Experimental of 2026-11-12 bundles2576c0b4a, 39 commits behind.VKD3D_SHADER_CACHE_PATHis a folder. Given the path of a file, vkd3d-proton logsFailed to map read-only cacheand compiles every pipeline again on every run.Measured with Proton Experimental
20261112, vkd3d-protonmaster@ec20719, an RTX 3080 Ti, and the fork line (fxceless/victory-fork with uiliannn/VItoriaBr): menus 25–30 fps, the intro at 1.3–2.5 fps with a tree-indexed wineserver. The full list in the order it failed is in fxceless/victory-fork#6.@desplmfao on GitHub · 2026-11-25 14:08 UTC · original
@slauko thanks, these are useful, and each one names its log line. As of
ece0c78, two of them are in a short Common snags section, credited to you:device=0log line andSDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT=0000/0000VKD3D_SHADER_CACHE_PATHbeing a folderI left the others out, only because the triage asked to keep this doc short and to keep it from going stale on things outside
main:warmandtranslate --pipelinescome from the fork line, and upstream has no such tools.ec20719cutoff from this setup.The doc is 70 lines now.
@arogan178 on GitHub · 2026-11-25 23:40 UTC · original
The
winetricks d3dcompiler_47step does not fix the clamp: winetricks installs the Windows 8.1 build (6.3.9600.16384), which rejects VIctory'scs_5_1target. The Windows SDK's build does compile it.Reproduced on CachyOS, RX 9070 XT (RADV), Proton-CachyOS 11.0 with Proton Experimental's vkd3d-proton 3.2.0
d3d12.dll/d3d12core.dllbeside the exe,WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3dcompiler_47=n,b":+loaddllshows it loaded as native):D3DCompilefails with0x8876086C,error X3506: unrecognized compiler target 'cs_5_1'.indirect::tests::argument_clamp_buildsand the five other clamp tests fail, so a run would drop every indirect execution.d3dcompiler_47.dll10.0.26100.9457(x64) from the Windows SDK 10.0.26100, placed beside the exe: all 6indirect::tests pass, and 228 of 231victory-gputests pass under Proton. The 3 left are the pipeline library (#1722) and castable format 89 (#2101).The SDK's DLL is in the "Windows SDK for Windows Store Apps Tools" installer's cabinets (the x64 PE32+ one of the
D3DCOMPILER_47.DLLfiles). Suggest the doc names that build, or at least the minimum version, instead of winetricks.@desplmfao on GitHub · 2026-11-26 01:10 UTC · original
@arogan178 thanks, you're right. The DLL I tested with is 10.0.26100.7705 from the Windows SDK, and I never checked what winetricks installs.
064427changes the doc to name a Windows 10/11 SDK build (10.0.x, the x64 file from the "Windows SDK for Windows Store Apps Tools" cabinets). It also warns againstwinetricks d3dcompiler_47, with theX3506error and the dropped indirect executions you found, and credits you for it.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.