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

Open
desplmfao wants to merge 18 commits from upstream-pr/2082 into main
desplmfao commented 2026-11-25 04:28:30 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by desplmfao on 2026-11-25T04:28:30Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:issue:6597219049 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082). Originally posted by [desplmfao](https://github.com/desplmfao) on 2026-11-25T04:28:30Z. --- ## 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)
DenRakEiw commented 2026-11-25 05:06:03 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T04:44:44Z.

Review: APPROVED


Verified locally merged onto origin/main (940d32f, Windows 11 x64):

  • cargo xtask policy — ok (189 files ok)

Clear Linux/Proton documentation and reproducible wineserver view-tree helper scripts/patches. Looks good.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6051980225 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#pullrequestreview-6051980225). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-25T04:44:44Z. **Review:** APPROVED --- Verified locally merged onto `origin/main` (`940d32f`, Windows 11 x64): - `cargo xtask policy` — ok (`189 files ok`) Clear Linux/Proton documentation and reproducible wineserver view-tree helper scripts/patches. Looks good. AI-assisted (Gemini 4 Neon).
catminou4 commented 2026-11-25 05:06:03 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T05:02:17Z.

Review: COMMENTED


Static review only: docs/tools change — no crate code.

Proton run docs + wineserver view-table notes — valuable for Linux/Proton users; the emulator's Windows-only build makes this the practical path there.

<!-- greyfinch-sync:Marvisak/VIctory:review:6052104663 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#pullrequestreview-6052104663). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T05:02:17Z. **Review:** COMMENTED --- Static review only: docs/tools change — no crate code. Proton run docs + wineserver view-table notes — valuable for Linux/Proton users; the emulator's Windows-only build makes this the practical path there.
jeremygold02 commented 2026-11-25 05:06:21 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by jeremygold02 on 2026-11-25T04:39:06Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7153039169 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7153039169). Originally posted by [jeremygold02](https://github.com/jeremygold02) on 2026-11-25T04:39:06Z. --- **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.
ajsem1337 commented 2026-11-25 05:06:28 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by ajsem1337 on 2026-11-25T05:05:00Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7153433727 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7153433727). Originally posted by [ajsem1337](https://github.com/ajsem1337) on 2026-11-25T05:05:00Z. --- 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 commented 2026-11-25 06:02:44 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Deilach on 2026-11-25T05:13:52Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7153570759 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7153570759). Originally posted by [Deilach](https://github.com/Deilach) on 2026-11-25T05:13:52Z. --- 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.
desplmfao commented 2026-11-25 06:02:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by desplmfao on 2026-11-25T05:17:59Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7153637015 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7153637015). Originally posted by [desplmfao](https://github.com/desplmfao) on 2026-11-25T05:17:59Z. --- @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 commented 2026-11-25 07:03:32 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by desplmfao on 2026-11-25T07:02:06Z.


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).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7155416054 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7155416054). Originally posted by [desplmfao](https://github.com/desplmfao) on 2026-11-25T07:02:06Z. --- 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 commented 2026-11-25 08:06:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by desplmfao on 2026-11-25T08:05:33Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7156596574 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7156596574). Originally posted by [desplmfao](https://github.com/desplmfao) on 2026-11-25T08:05:33Z. --- 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 commented 2026-11-25 10:07:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by desplmfao on 2026-11-25T09:18:40Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7158159029 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7158159029). Originally posted by [desplmfao](https://github.com/desplmfao) on 2026-11-25T09:18:40Z. --- 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.
Beqren commented 2026-11-25 10:07:50 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Beqren on 2026-11-25T09:52:37Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7158919563 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7158919563). Originally posted by [Beqren](https://github.com/Beqren) on 2026-11-25T09:52:37Z. --- **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.*
desplmfao commented 2026-11-25 10:07:55 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by desplmfao on 2026-11-25T10:01:36Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7159122349 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7159122349). Originally posted by [desplmfao](https://github.com/desplmfao) on 2026-11-25T10:01:36Z. --- @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.
upstream-sync changed title from [PR #2082] Docs, tools: running under Proton, and the wineserver view-tree patch from #340 to [PR #2082] Docs: running under Wine/Proton on Linux (short notes) 2026-11-25 11:03:49 +00:00
Marvisak commented 2026-11-25 11:05:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T10:31:23Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7159810423 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7159810423). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T10:31:23Z. --- <!-- 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)_
desplmfao commented 2026-11-25 11:05:27 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by desplmfao on 2026-11-25T10:37:11Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7159942675 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7159942675). Originally posted by [desplmfao](https://github.com/desplmfao) on 2026-11-25T10:37:11Z. --- 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.
slauko commented 2026-11-25 14:07:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by slauko on 2026-11-25T14:04:15Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7164711201 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7164711201). Originally posted by [slauko](https://github.com/slauko) on 2026-11-25T14:04:15Z. --- 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.
desplmfao commented 2026-11-25 15:04:13 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by desplmfao on 2026-11-25T14:08:19Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7164815603 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7164815603). Originally posted by [desplmfao](https://github.com/desplmfao) on 2026-11-25T14:08:19Z. --- @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.
arogan178 commented 2026-11-26 00:03:35 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by arogan178 on 2026-11-25T23:40:49Z.


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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7177899054 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7177899054). Originally posted by [arogan178](https://github.com/arogan178) on 2026-11-25T23:40:49Z. --- > [!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.
desplmfao commented 2026-11-26 02:06:54 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by desplmfao on 2026-11-26T01:10:49Z.


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

<!-- greyfinch-sync:Marvisak/VIctory:comment:7179512962 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2082#issuecomment-7179512962). Originally posted by [desplmfao](https://github.com/desplmfao) on 2026-11-26T01:10:49Z. --- @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 cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2082:upstream-pr/2082'
git switch 'upstream-pr/2082'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2082'
git switch 'upstream-pr/2082'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2082'
git switch 'upstream-pr/2082'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2082'
git switch 'main'
git merge --squash 'upstream-pr/2082'
git switch 'main'
git merge --ff-only 'upstream-pr/2082'
git switch 'main'
git merge 'upstream-pr/2082'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
Marvisak/VIctory!2080
No description provided.