Docs: running under Wine/Proton on Linux (short notes) #2082

Open
github-bot wants to merge 18 commits from github-bot/gh-2082 into main AGit
Owner

@⁠desplmfao on GitHub · 2026-11-25 04:28 UTC · original
desplmfao:docs/linux-wineserver → main · +71 −0 · 2 files · 18 commits · open

What

  • docs/linux.md (53 lines): how testers run VIctory under Wine/Proton. It's marked unsupported.
    • Setup: vkd3d-proton's native d3d12/d3d12core, and Microsoft's d3dcompiler_47.dll.
    • NVIDIA: VICTORY_PIPELINE_JOURNAL from #491, and the passes that time out, linked to where they are tracked.
    • The wineserver patch: a link to ajsem1337's comment in #340, the Wine bug and the wine-cachyos PR.
  • 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_47 refuses 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

**@⁠desplmfao** on GitHub · 2026-11-25 04:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082) `desplmfao:docs/linux-wineserver` → `main` · +71 −0 · 2 files · 18 commits · open ## What - **`docs/linux.md`** (53 lines): how testers run VIctory under Wine/Proton. It's marked unsupported. - **Setup:** vkd3d-proton's native `d3d12`/`d3d12core`, and Microsoft's `d3dcompiler_47.dll`. - **NVIDIA:** `VICTORY_PIPELINE_JOURNAL` from #491, and the passes that time out, linked to where they are tracked. - **The wineserver patch:** a link to ajsem1337's comment in #340, the Wine bug and the wine-cachyos PR. - **`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_47` refuses 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](https://github.com/desplmfao/VIctory/blob/renderer/docs/linux-wineserver.md) 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](https://claude.com/claude-code)
docs/linux.md: what has worked under Wine/Proton (vkd3d-proton, DLL
overrides, the pipeline journal on NVIDIA) and how to run with a
patched wineserver. tools/wine/: ajsem1337's view-tree patch from #340,
ported to wine-cachyos 11.0, a script that builds the server from a
Proton release's Wine source, and one that makes a Proton copy using
it. A world frame went from about 4.0 s to 1.0 s on an RTX 5080.

The patch is kept as .patch.txt to stay inside the asset policy's
allowlist.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
build-wineserver.sh now uses the first view-tree patch that applies. The
11.0 patch also applies to Proton Experimental (experimental_11.0) and
GE-Proton 11; Proton 10 and upstream master get ports of their own.
Each builds server/wineserver without warnings and matched the original
list lookups in a randomized comparison; only proton-cachyos 11.0 has
been run with the title.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
build-wineserver.sh also takes an already prepared Wine source directory
(GE-Proton's Wine only exists after GE's prep script). docs/linux.md
gives the exact commands for proton-cachyos 11.0, Proton Experimental,
Valve Proton 10, GE-Proton 11 and a self-built upstream Wine, and says
which have been run with the title.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The setup said proton-cachyos 11.0 ships vkd3d-proton 2576c0b4. It ships
3dfc6f07; the tested d3d12.dll and d3d12core.dll were Proton
Experimental 11.0's (2576c0b4), next to victory.exe. Also where to read
a Proton's vkd3d-proton build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With vkd3d-proton's raw access chains, one of the title's compute
programs does not finish at the start of the first mission: Xid 109 in
the kernel log, a stalled desktop, and the title's watchdog ending the
process (Unsignaled CrossQueueBarrier). VKD3D_DISABLE_EXTENSIONS avoids
it; measured on an RTX 5080, as found by testers in #844 and #1528.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Disabling VK_NV_raw_access_chains avoids the hang but changes how every
shader is compiled, and the picture turned white with it here; skipping
only compute 72f552f4553fb5f9 avoids the hang and keeps the rest drawn.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Wine's builtin D3DCompile refuses VIctory's run-time helper shaders
(E5005 on RWByteAddressBuffer methods), so the indirect argument clamp
is never built and every indirect draw and dispatch is dropped. With
Microsoft's d3dcompiler_47.dll next to victory.exe and a native override,
the clamp and the other helpers compile.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From Beqren's run of Proton Experimental on an RX 9070 (#2082):
- build-wineserver.sh takes a commit as well as a tag or branch, so
  Experimental can be built from the Wine commit its Proton tag pins
  instead of the moving branch head;
- it regenerates server_protocol.h with tools/make_requests (Valve's
  committed header says 930 where the requests make 931), and with a
  Proton directory as fourth argument checks the version against that
  Proton's ntdll.so and stops on a mismatch;
- configure with --disable-tests;
- docs: the pinned Experimental build, Beqren's AMD numbers, the check,
  and the full-copy alternative to proton-with-wineserver.sh.

Tested: proton-cachyos 11.0 end to end (clone, patch, regenerate,
'protocol 932 matches .../ntdll.so', build); the check rejects 931; the
commit-pinned fetch checks out the tag's commit.

Co-Authored-By: Beqren <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Upstream's triage asked for short docs and for the Wine (LGPL) patch code
and the scripts that fetch and build Wine to stay outside the repository.
docs/linux.md keeps the setup that matters (native D3D12 DLLs, Microsoft's
d3dcompiler_47), the NVIDIA notes, and links to the patch's comment in
#340, the Wine bug, the wine-cachyos PR and the out-of-tree build notes.
tools/wine/ is removed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The title's strand-hair passes hang NVIDIA GPUs with vkd3d-proton's
VK_NV_raw_access_chains; with the extension off they run and the people
in the scene stay intact (RTX 5080, five minutes in the world).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
winetricks installs the Windows 8.1 build (6.3.9600.16384), which does not
know cs_5_1: the clamp shaders fail and every indirect execution is
dropped, as with Wine's own compiler. Found and checked by arogan178 on an
RX 9070 XT under Proton; the build we tested with is 10.0.26100.7705.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:54:19 +00:00
Author
Owner

@⁠jeremygold02 on GitHub · 2026-11-25 04:39 UTC · original

Triage verdict — Keep the Proton guide, verify the source on rebuild (5d192ed)

Evidence

  • @⁠desplmfao makes @⁠ajsem1337’s #340 patch easier to find and documents the requirement that the built wineserver match the Proton release. The build script only uses the requested URL and ref when src is 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 note

Checks and limits

  • Reviewed the script and guide at this head. I did not download or build Wine or run Proton. #491 remains open, consistent with the guide’s note that its environment variable depends on that PR.

Next step

  • Verify the existing checkout’s remote and resolved revision against the request, or require a fresh work directory when they differ. A small script test can use two local Git refs and assert that reusing the directory fails clearly before the build.

This verification was AI-assisted.

**@⁠jeremygold02** on GitHub · 2026-11-25 04:39 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7153039169) **Triage verdict — Keep the Proton guide, verify the source on rebuild** (`5d192ed`) **Evidence** - @⁠desplmfao makes @⁠ajsem1337’s #340 patch easier to find and documents the requirement that the built wineserver match the Proton release. The build script only uses the requested URL and ref when `src` is 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](https://github.com/Marvisak/VIctory/blob/5d192ed9c6f36d7ca82ebcc81c8cbcc56b699cef/tools/wine/build-wineserver.sh#L14-L27) · [Compatibility note](https://github.com/Marvisak/VIctory/blob/5d192ed9c6f36d7ca82ebcc81c8cbcc56b699cef/docs/linux.md#L42-L55) **Checks and limits** - Reviewed the script and guide at this head. I did not download or build Wine or run Proton. #491 remains open, consistent with the guide’s note that its environment variable depends on that PR. **Next step** - Verify the existing checkout’s remote and resolved revision against the request, or require a fresh work directory when they differ. A small script test can use two local Git refs and assert that reusing the directory fails clearly before the build. This verification was AI-assisted.
Author
Owner

@⁠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.

**@⁠ajsem1337** on GitHub · 2026-11-25 05:05 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7153433727) 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.
Author
Owner

@⁠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:

  1. RADV crashes on entering the world with any released vkd3d-proton. dxil-spirv makes invalid SPIR-V for some world shaders: a loop exit that isn't a structured exit, which spirv-val rejects. RADV then segfaults in radv_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 its d3d12.dll/d3d12core.dll). Is the "vkd3d-proton 3.2.0" in the doc a proton-cachyos build? There's no v3.2 tag upstream.
  2. Wine's HLSL compiler can't build VIctory's two runtime shaders. These are the indirect-argument clamp and the 16-bit depth conversion (#909, #170). Proton's d3dcompiler_47 is Wine's too. Without them every indirect draw is dropped, and the world is mostly black. Until #1279 or #2093 lands: winetricks d3dcompiler_47, or protontricks <appid> d3dcompiler_47.
  3. vkd3d-proton refuses some things Windows drivers accept. These have open fixes:
    • mesh pipelines that blend on integer render targets: #806, #2042
    • castable format lists, because vkd3d-proton has no R10G10B10_XR_BIAS_A2_UNORM: #2101
    • a discard inside a loop, which runs to the loop limit (0.4 s per draw): #2043

A DualSense under plain Wine needed winebus DisableHidraw=1 and Enable SDL=1 here.

Happy to send these as a follow-up PR to docs/linux.md after this one lands, if you'd prefer that to folding them in.

**@⁠Deilach** on GitHub · 2026-11-25 05:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7153570759) 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: 1. **RADV crashes on entering the world with any released vkd3d-proton.** `dxil-spirv` makes invalid SPIR-V for some world shaders: a loop exit that isn't a structured exit, which `spirv-val` rejects. RADV then segfaults in `radv_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 its `d3d12.dll`/`d3d12core.dll`). Is the "vkd3d-proton 3.2.0" in the doc a proton-cachyos build? There's no v3.2 tag upstream. 2. **Wine's HLSL compiler can't build VIctory's two runtime shaders.** These are the indirect-argument clamp and the 16-bit depth conversion (#909, #170). Proton's `d3dcompiler_47` is Wine's too. Without them every indirect draw is dropped, and the world is mostly black. Until #1279 or #2093 lands: `winetricks d3dcompiler_47`, or `protontricks <appid> d3dcompiler_47`. 3. **vkd3d-proton refuses some things Windows drivers accept.** These have open fixes: - mesh pipelines that blend on integer render targets: #806, #2042 - castable format lists, because vkd3d-proton has no `R10G10B10_XR_BIAS_A2_UNORM`: #2101 - a discard inside a loop, which runs to the loop limit (0.4 s per draw): #2043 A DualSense under plain Wine needed winebus `DisableHidraw=1` and `Enable SDL=1` here. Happy to send these as a follow-up PR to `docs/linux.md` after this one lands, if you'd prefer that to folding them in.
Author
Owner

@⁠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.md once 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, build 2576c0b4adfae4a, not an upstream tag. The doc now says that (docs/linux.md, setup section).

**@⁠desplmfao** on GitHub · 2026-11-25 05:17 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7153637015) @⁠Deilach thanks, that's a very useful set of notes. Please do send it as a follow-up PR to `docs/linux.md` once 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`, build `2576c0b4adfae4a`, not an upstream tag. The doc now says that (`docs/linux.md`, setup section).
Author
Owner

@⁠desplmfao on GitHub · 2026-11-25 07:02 UTC · original

Correction to the setup section, now pushed: the tested d3d12.dll and d3d12core.dll were Proton Experimental 11.0's (vkd3d-proton 3.2.0, 2576c0b4), placed next to victory.exe and 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 ships 2576c0b4, 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 07:02 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7155416054) Correction to the setup section, now pushed: the tested `d3d12.dll` and `d3d12core.dll` were **Proton Experimental 11.0's** (vkd3d-proton 3.2.0, `2576c0b4`), placed next to `victory.exe` and 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 ships `2576c0b4`, which was wrong. The doc now says this, and where to check a Proton's vkd3d-proton build (`files/lib/wine/vkd3d-proton/version`).
Author
Owner

@⁠desplmfao on GitHub · 2026-11-25 08:05 UTC · original

Added an NVIDIA note to the setup section (170e1ca): set VKD3D_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 with Unsignaled CrossQueueBarrier in its crash log. I bisected the stuck submission down to compute 72f552f4553fb5f9: 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 08:05 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7156596574) Added an NVIDIA note to the setup section (`170e1ca`): set `VKD3D_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 with `Unsignaled CrossQueueBarrier` in its crash log. I bisected the stuck submission down to compute `72f552f4553fb5f9`: 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.
Author
Owner

@⁠desplmfao on GitHub · 2026-11-25 09:18 UTC · original

Added in fbc7944: under Wine, use Microsoft's d3dcompiler_47.dll. Wine's builtin D3DCompile refuses VIctory's run-time helper shaders (E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'), so the log says no argument clamp: indirect execution dropped and 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 to victory.exe and d3dcompiler_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.

**@⁠desplmfao** on GitHub · 2026-11-25 09:18 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7158159029) Added in `fbc7944`: under Wine, use Microsoft's `d3dcompiler_47.dll`. Wine's builtin `D3DCompile` refuses VIctory's run-time helper shaders (`E5005: Method 'Load' is not defined on type 'RWByteAddressBuffer'`), so the log says `no argument clamp: indirect execution dropped` and 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 to `victory.exe` and `d3dcompiler_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.
Author
Owner

@⁠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 only files/bin/wineserver with 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_tree flag. This PR's -cachyos11 file 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:

  1. Pin the exact Wine commit. Take it from the Proton tag rather than the branch head. Today they are the same commit, but Experimental moves:
    gh api "repos/ValveSoftware/Proton/contents/wine?ref=experimental-11.0-20261112" --jq .sha
    # 5b557605b4e51f0853ec8e0e4f0eb536c669fae3; the installed tag is in "<Proton>/version"
    
  2. Check the built server against the Proton it will run with, not only print the version. Valve's committed include/wine/server_protocol.h says 930 and lacks the fsync requests, so the server does not compile from it. tools/make_requests (run by autogen.sh) regenerates it as 931. The stock ntdll.so compares against that number, which you can confirm:
    V=$(sed -n 's/^#define SERVER_PROTOCOL_VERSION //p' src/include/wine/server_protocol.h)
    objdump -d --no-show-raw-insn "<Proton>/files/lib/wine/x86_64-unix/ntdll.so" | grep -F -c "\$0x$(printf %x "$V"),"
    # 2 here (cmp $0x3a3 and the error message); 0 means the source is not the one this Proton was built from
    
    With a prepared source directory that already has a configure, autogen.sh is skipped, so the header there is worth checking.
  3. The server runs in umu's steamrt4 container as built. I configured with nearly everything off, as the script does, plus --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 only files/bin/wineserver replaced 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.

**@⁠Beqren** on GitHub · 2026-11-25 09:52 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7158919563) **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 only `files/bin/wineserver` with 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_tree` flag. This PR's `-cachyos11` file 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`: 1. **Pin the exact Wine commit.** Take it from the Proton tag rather than the branch head. Today they are the same commit, but Experimental moves: ```sh gh api "repos/ValveSoftware/Proton/contents/wine?ref=experimental-11.0-20261112" --jq .sha # 5b557605b4e51f0853ec8e0e4f0eb536c669fae3; the installed tag is in "<Proton>/version" ``` 2. **Check the built server against the Proton it will run with, not only print the version.** Valve's committed `include/wine/server_protocol.h` says 930 and lacks the fsync requests, so the server does not compile from it. `tools/make_requests` (run by `autogen.sh`) regenerates it as 931. The stock `ntdll.so` compares against that number, which you can confirm: ```sh V=$(sed -n 's/^#define SERVER_PROTOCOL_VERSION //p' src/include/wine/server_protocol.h) objdump -d --no-show-raw-insn "<Proton>/files/lib/wine/x86_64-unix/ntdll.so" | grep -F -c "\$0x$(printf %x "$V")," # 2 here (cmp $0x3a3 and the error message); 0 means the source is not the one this Proton was built from ``` With a prepared source directory that already has a `configure`, `autogen.sh` is skipped, so the header there is worth checking. 3. **The server runs in umu's steamrt4 container as built.** I configured with nearly everything off, as the script does, plus `--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 only `files/bin/wineserver` replaced 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.*
Author
Owner

@⁠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:

  1. Pinned commit: build-wineserver.sh now 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.
  2. Protocol: the script now always regenerates server_protocol.h with tools/make_requests and prints the version. Given the Proton directory as a fourth argument, it checks that version against the Proton's ntdll.so and 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).
  3. Build and copy: --disable-tests is added (inotify stays on), and the doc mentions the full-copy alternative (cp -a --reflink=auto with only files/bin/wineserver replaced).

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.

**@⁠desplmfao** on GitHub · 2026-11-25 10:01 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7159122349) @⁠Beqren thank you, that's the row I couldn't test, and all three points are in `cea755b`: 1. **Pinned commit:** `build-wineserver.sh` now 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. 2. **Protocol:** the script now always regenerates `server_protocol.h` with `tools/make_requests` and prints the version. Given the Proton directory as a fourth argument, it checks that version against the Proton's `ntdll.so` and 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). 3. **Build and copy:** `--disable-tests` is added (inotify stays on), and the doc mentions the full-copy alternative (`cp -a --reflink=auto` with only `files/bin/wineserver` replaced). 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.
Author
Owner

@⁠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 the d3dcompiler_47 note in docs/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 lacks cs_5_1. That matches the test report in the comments, and main compiles 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:

  • Scope: whether VIctory's docs should carry notes for a platform the doc itself calls unsupported.
  • Shelf life: some lines depend on things outside main (VICTORY_PIPELINE_JOURNAL from #491, specific Proton/vkd3d-proton builds, a link to a contributor's fork).

If a Linux note is wanted, the d3dcompiler_47 and VKD3D_DISABLE_EXTENSIONS lines are the most useful parts.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 10:31 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7159810423) · edited 2026-11-26 01:20 UTC <!-- victory-triage v1 head=d6c3e4ef83b6ed4c4979ddf6aa3da16e3fad8384 verdict=needs-work at=2026-11-26T01:20:55Z --> Automated triage for the maintainers. **Needs work: needs the maintainer's decision (unchanged).** Since `dc7f3ff`, the only changes are to the `d3dcompiler_47` note in `docs/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 lacks `cs_5_1`. That matches the test report in the comments, and `main` compiles 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: - **Scope:** whether VIctory's docs should carry notes for a platform the doc itself calls unsupported. - **Shelf life:** some lines depend on things outside `main` (`VICTORY_PIPELINE_JOURNAL` from #491, specific Proton/vkd3d-proton builds, a link to a contributor's fork). If a Linux note is wanted, the `d3dcompiler_47` and `VKD3D_DISABLE_EXTENSIONS` lines are the most useful parts. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠desplmfao on GitHub · 2026-11-25 10:37 UTC · original

Thanks for the triage, I've followed it. As of 2da4da7 this PR is two files and 55 lines:

  • docs/linux.md is 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 Wine patch code (LGPL) and the scripts that fetch and build Wine are out of the tree. They're kept outside the repository, and the doc links there.

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.

**@⁠desplmfao** on GitHub · 2026-11-25 10:37 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7159942675) Thanks for the triage, I've followed it. As of `2da4da7` this PR is two files and 55 lines: - `docs/linux.md` is 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 Wine patch code (LGPL) and the scripts that fetch and build Wine are out of the tree. They're kept outside the repository, and the doc links there. 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.
Author
Owner

@⁠slauko on GitHub · 2026-11-25 14:04 UTC · original

Three things every tester on Linux will hit that docs/linux.md does 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_pad in crates/victory-hle/src/modules/gameinput.rs). The log tells them apart: input device device=0 connected=true is the phantom pad, device=4 the stand-in. SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT=0000/0000 keeps 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 warm or translate --pipelines with WAYLAND_DISPLAY and DISPLAY both unset gets no Vulkan surface extension: DxvkInstance::createInstance: Failed to create Vulkan instance, then no host D3D12 device. warm still 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. With WAYLAND_DISPLAY set 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 (0xc0000005 at title+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:

  • vkd3d-proton from ec20719 on 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 bundles 2576c0b4a, 39 commits behind.
  • VKD3D_SHADER_CACHE_PATH is a folder. Given the path of a file, vkd3d-proton logs Failed to map read-only cache and compiles every pipeline again on every run.

Measured with Proton Experimental 20261112, vkd3d-proton master@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.

**@⁠slauko** on GitHub · 2026-11-25 14:04 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7164711201) Three things every tester on Linux will hit that `docs/linux.md` does 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_pad` in `crates/victory-hle/src/modules/gameinput.rs`). The log tells them apart: `input device device=0 connected=true` is the phantom pad, `device=4` the stand-in. `SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT=0000/0000` keeps 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 warm` or `translate --pipelines` with `WAYLAND_DISPLAY` and `DISPLAY` both unset gets no Vulkan surface extension: `DxvkInstance::createInstance: Failed to create Vulkan instance`, then `no host D3D12 device`. `warm` still 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. With `WAYLAND_DISPLAY` set 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 (`0xc0000005` at `title+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: - **vkd3d-proton from `ec20719` on 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 bundles `2576c0b4a`, 39 commits behind. - **`VKD3D_SHADER_CACHE_PATH` is a folder.** Given the path of a file, vkd3d-proton logs `Failed to map read-only cache` and compiles every pipeline again on every run. Measured with Proton Experimental `20261112`, vkd3d-proton `master@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.
Author
Owner

@⁠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:

  • the phantom pad, with the device=0 log line and SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT=0000/0000
  • VKD3D_SHADER_CACHE_PATH being a folder

I 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:

  • warm and translate --pipelines come from the fork line, and upstream has no such tools.
  • The second-launch hang needs #1722, which isn't merged. That note would fit better on #1722 itself.
  • On the vkd3d-proton version: here vkd3d-proton 3.2.0 from Proton Experimental 11.0 works on an RTX 5080, with our loop fix (#2309) in the translator. I haven't tried an older build, so I can't confirm the ec20719 cutoff from this setup.

The doc is 70 lines now.

**@⁠desplmfao** on GitHub · 2026-11-25 14:08 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7164815603) @⁠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: - the phantom pad, with the `device=0` log line and `SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT=0000/0000` - `VKD3D_SHADER_CACHE_PATH` being a folder I 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`: - `warm` and `translate --pipelines` come from the fork line, and upstream has no such tools. - The second-launch hang needs #1722, which isn't merged. That note would fit better on #1722 itself. - On the vkd3d-proton version: here vkd3d-proton 3.2.0 from Proton Experimental 11.0 works on an RTX 5080, with our loop fix (#2309) in the translator. I haven't tried an older build, so I can't confirm the `ec20719` cutoff from this setup. The doc is 70 lines now.
Author
Owner

@⁠arogan178 on GitHub · 2026-11-25 23:40 UTC · original

Note

🤖 Claude Opus 5.5 responding on behalf of @⁠arogan178

The winetricks d3dcompiler_47 step does not fix the clamp: winetricks installs the Windows 8.1 build (6.3.9600.16384), which rejects VIctory's cs_5_1 target. 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.dll beside the exe, WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3dcompiler_47=n,b":

  • winetricks' DLL (+loaddll shows it loaded as native): D3DCompile fails with 0x8876086C, error X3506: unrecognized compiler target 'cs_5_1'. indirect::tests::argument_clamp_builds and the five other clamp tests fail, so a run would drop every indirect execution.
  • d3dcompiler_47.dll 10.0.26100.9457 (x64) from the Windows SDK 10.0.26100, placed beside the exe: all 6 indirect:: tests pass, and 228 of 231 victory-gpu tests 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.DLL files). Suggest the doc names that build, or at least the minimum version, instead of winetricks.

**@⁠arogan178** on GitHub · 2026-11-25 23:40 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7177899054) > [!NOTE] > 🤖 **Claude Opus 5.5 responding on behalf of @⁠arogan178** The `winetricks d3dcompiler_47` step does not fix the clamp: winetricks installs the Windows 8.1 build (`6.3.9600.16384`), which rejects VIctory's `cs_5_1` target. 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.dll` beside the exe, `WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3dcompiler_47=n,b"`: - winetricks' DLL (`+loaddll` shows it loaded as native): `D3DCompile` fails with `0x8876086C`, `error X3506: unrecognized compiler target 'cs_5_1'`. `indirect::tests::argument_clamp_builds` and the five other clamp tests fail, so a run would drop every indirect execution. - `d3dcompiler_47.dll` `10.0.26100.9457` (x64) from the Windows SDK 10.0.26100, placed beside the exe: all 6 `indirect::` tests pass, and 228 of 231 `victory-gpu` tests 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.DLL` files). Suggest the doc names that build, or at least the minimum version, instead of winetricks.
Author
Owner

@⁠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. 064427 changes 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 against winetricks d3dcompiler_47, with the X3506 error and the dropped indirect executions you found, and credits you for it.

**@⁠desplmfao** on GitHub · 2026-11-26 01:10 UTC · [original](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7179512962) @⁠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. `064427` changes 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 against `winetricks d3dcompiler_47`, with the `X3506` error and the dropped indirect executions you found, and credits you for it.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2082/head:github-bot/gh-2082'
git switch 'github-bot/gh-2082'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2082'
git switch 'github-bot/gh-2082'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2082'
git switch 'github-bot/gh-2082'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2082'
git switch 'main'
git merge --squash 'github-bot/gh-2082'
git switch 'main'
git merge --ff-only 'github-bot/gh-2082'
git switch 'main'
git merge 'github-bot/gh-2082'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2082
No description provided.