Proton: Linux cross-build CI, a launcher, and the tests run under Wine #1630

Open
github-bot wants to merge 2 commits from github-bot/gh-1630 into main AGit
Owner

@⁠cva68 on GitHub · 2026-11-28 22:38 UTC · original
cva68:proton-phase0 → main · +926 −11 · 15 files · 2 commits · open

No issue. This follows on from docs/linux-proton.md (73ce91d). Based on d4b5d51.

What it changes

Tooling for running and testing the layer under Proton on Linux, plus two small fixes the tests turned up. Nothing changes on Windows except one startup check, which returns at once there (see "Wine report").

Tooling

  • CI: a linux-cross job runs cargo xwin clippy -- -D warnings and cargo xwin build -p victory, so a change that builds only with MSVC shows up in review.
  • scripts/play-proton.sh: starts victory.exe under Proton (umu-run, or Proton's own script).
    • Picks the newest GE-Proton, else Proton Experimental.
    • Passes victory.exe and the dump by their Z:\ paths. With a Unix path, Proton starts the program through a wrapper and its console output is lost.
    • Sets PROTON_ENABLE_NVAPI=1.
    • Puts vkd3d-proton's pipeline cache in the prefix. vkd3d-proton writes it to the current folder by default, which could put game-derived data in the tree. .gitignore also covers vkd3d-proton.cache*.
  • scripts/test-proton.sh: builds the workspace's tests for Windows and runs each test program under Proton. It skips five tests that cannot pass in a prefix, each with the reason in the script: three need git, cargo or real Windows, one expects NTFS's 1024-link limit, and one expects Windows' DXIL digest check.
  • Wine report (apps/victory/src/wine.rs): under Wine only, logs one running under Wine line at the start. It has the Wine build, the kernel, the vkd3d-proton and dxvk-nvapi versions, whether the driver's nvngx.dll is in the prefix, and vm.max_map_count. It warns about vkd3d-proton 3.1, which crashed NVIDIA's shader compiler on the title's shaders (docs/linux-proton.md), and about a low vm.max_map_count. This makes Linux reports comparable. apps/victory gains tracing as a dependency.

Fixes found by running the tests under Wine

  • net.rs: Wine's ws2_32 has no WSAConnectByList or GetAddrInfoExA. Both overrides went through host!, which panics on a missing export and ends the process. Where the host lacks one, they now fail the connect (WSAEOPNOTSUPP) or the lookup (WSAHOST_NOT_FOUND), as a blocked call already did. Windows has both exports, so nothing changes there. The export test now lists every missing export, not just the first.
  • victory-core/src/policy.rs: a Linux cross-build bakes in a Unix CARGO_MANIFEST_DIR, which Windows reads as relative to the current drive. The compiled repo root is now read through Wine's Z: drive. This applies only to a path starting with /, so a Windows build is unaffected. The .victory-root ancestor check, which was already effective, is unchanged.

Docs

  • docs/linux-proton.md: how to use the two scripts.

Known failures under Proton, not fixed here. 21 of 550 victory-gpu tests fail under Proton. Details are in docs/proton-plan.md.

  • 12: helper shaders. D3DCompile (Proton's d3dcompiler_47) refuses the helper shaders or drops their [RootSignature]: the ambient, indirect, clamp and depth-twin passes. #925 addresses this.
  • 5: write tracking. Wine has no NtQueryVirtualMemory class 7, so placeholders cannot be told apart from plain reservations. Three of the five are section-view guard tests still to be looked at.
  • 3: descriptors. vkd3d-proton reports format support differently and lays out descriptor bytes differently. #1355 replaces one of these tests.
  • 1: WARP. The test needs a WARP adapter, which Proton does not have.

How it was tested

  • GPU and profile: RTX 2060 SUPER, NVIDIA 620.73.04, Arch Linux (kernel 7.3.5), umu-launcher 1.4.4. Tests on GE-Proton11-14 (vkd3d-proton 3.2.0). The Wine report and victory shader-model also on GE-Proton11-12 (vkd3d-proton 3.1) and Proton Experimental 11.0-20261123b (3.2.0). The title itself was not run in this PR. Not tested on Windows.
  • Before: no Linux build check in CI. The tests could not be run under Wine without tooling. A Linux build's asset-policy tests failed under Wine (6 tests). A title calling WSAConnectByList or GetAddrInfoExA under Wine would end the process.
  • After:
    • cargo xwin build --release -p victory builds.
    • cargo xwin clippy --workspace --all-targets adds no findings. The findings already on main remain; see Related.
    • Under Proton, every test program passes except victory-gpu (529 passed, 21 failed, as listed above).
    • The Wine report gives the right versions on all three Protons (3.2.0 (v3.1-83-gcae8353ed-...) for GE-Proton11-14's build) and warns only on vkd3d-proton 3.1. victory shader-model reports 6.9 on the 3.2 Protons.
  • For shader changes, the wave sizes tested: no shader changes.
  • cargo test passed for the crates it touches: under Proton, yes, except the known victory-gpu failures above (none in code this PR changes). Natively on Windows: not run; I have no Windows machine.
    • On a Windows machine, these would confirm it: cargo test -p victory -p victory-core -p victory-pipeline -p victory-hle.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #1294 (also edits ci.yml; whichever merges second needs a rebase), #1517 / #1527 / #1566 (main's clippy; the new linux-cross job is red until they merge, as the Windows job is), #925 / #605 / #627 (DXC fallback: the 12 helper-shader failures listed above), #873 / #926 / #1199 / #1226 (also edit docs/linux-proton.md), #1355 (replaces one of the descriptor-byte tests that fail under Proton).

Co-Authored-By: Claude Opus 5.5 [email protected]

**@⁠cva68** on GitHub · 2026-11-28 22:38 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1630) `cva68:proton-phase0` → `main` · +926 −11 · 15 files · 2 commits · open <!-- Labels: pr-feature, pr-tests --> No issue. This follows on from docs/linux-proton.md (73ce91d). Based on d4b5d51. ## What it changes Tooling for running and testing the layer under Proton on Linux, plus two small fixes the tests turned up. **Nothing changes on Windows** except one startup check, which returns at once there (see "Wine report"). **Tooling** - **CI:** a `linux-cross` job runs `cargo xwin clippy -- -D warnings` and `cargo xwin build -p victory`, so a change that builds only with MSVC shows up in review. - **`scripts/play-proton.sh`:** starts `victory.exe` under Proton (`umu-run`, or Proton's own script). - Picks the newest GE-Proton, else Proton Experimental. - Passes `victory.exe` and the dump by their `Z:\` paths. With a Unix path, Proton starts the program through a wrapper and its console output is lost. - Sets `PROTON_ENABLE_NVAPI=1`. - Puts vkd3d-proton's pipeline cache in the prefix. vkd3d-proton writes it to the current folder by default, which could put game-derived data in the tree. `.gitignore` also covers `vkd3d-proton.cache*`. - **`scripts/test-proton.sh`:** builds the workspace's tests for Windows and runs each test program under Proton. It skips five tests that cannot pass in a prefix, each with the reason in the script: three need git, cargo or real Windows, one expects NTFS's 1024-link limit, and one expects Windows' DXIL digest check. - **Wine report (`apps/victory/src/wine.rs`):** under Wine only, logs one `running under Wine` line at the start. It has the Wine build, the kernel, the vkd3d-proton and dxvk-nvapi versions, whether the driver's `nvngx.dll` is in the prefix, and `vm.max_map_count`. It warns about vkd3d-proton 3.1, which crashed NVIDIA's shader compiler on the title's shaders (docs/linux-proton.md), and about a low `vm.max_map_count`. This makes Linux reports comparable. `apps/victory` gains `tracing` as a dependency. **Fixes found by running the tests under Wine** - `net.rs`: Wine's `ws2_32` has no `WSAConnectByList` or `GetAddrInfoExA`. Both overrides went through `host!`, which panics on a missing export and ends the process. Where the host lacks one, they now fail the connect (`WSAEOPNOTSUPP`) or the lookup (`WSAHOST_NOT_FOUND`), as a blocked call already did. Windows has both exports, so nothing changes there. The export test now lists every missing export, not just the first. - `victory-core/src/policy.rs`: a Linux cross-build bakes in a Unix `CARGO_MANIFEST_DIR`, which Windows reads as relative to the current drive. The compiled repo root is now read through Wine's `Z:` drive. This applies only to a path starting with `/`, so a Windows build is unaffected. The `.victory-root` ancestor check, which was already effective, is unchanged. **Docs** - `docs/linux-proton.md`: how to use the two scripts. **Known failures under Proton, not fixed here.** 21 of 550 `victory-gpu` tests fail under Proton. Details are in docs/proton-plan.md. - **12: helper shaders.** `D3DCompile` (Proton's d3dcompiler_47) refuses the helper shaders or drops their `[RootSignature]`: the ambient, indirect, clamp and depth-twin passes. #925 addresses this. - **5: write tracking.** Wine has no `NtQueryVirtualMemory` class 7, so placeholders cannot be told apart from plain reservations. Three of the five are section-view guard tests still to be looked at. - **3: descriptors.** vkd3d-proton reports format support differently and lays out descriptor bytes differently. #1355 replaces one of these tests. - **1: WARP.** The test needs a WARP adapter, which Proton does not have. ## How it was tested - GPU and profile: RTX 2060 SUPER, NVIDIA 620.73.04, Arch Linux (kernel 7.3.5), umu-launcher 1.4.4. Tests on GE-Proton11-14 (vkd3d-proton 3.2.0). The Wine report and `victory shader-model` also on GE-Proton11-12 (vkd3d-proton 3.1) and Proton Experimental 11.0-20261123b (3.2.0). **The title itself was not run in this PR. Not tested on Windows.** - Before: no Linux build check in CI. The tests could not be run under Wine without tooling. A Linux build's asset-policy tests failed under Wine (6 tests). A title calling `WSAConnectByList` or `GetAddrInfoExA` under Wine would end the process. - After: - `cargo xwin build --release -p victory` builds. - `cargo xwin clippy --workspace --all-targets` adds no findings. The findings already on `main` remain; see Related. - Under Proton, every test program passes except `victory-gpu` (529 passed, 21 failed, as listed above). - The Wine report gives the right versions on all three Protons (`3.2.0 (v3.1-83-gcae8353ed-...)` for GE-Proton11-14's build) and warns only on vkd3d-proton 3.1. `victory shader-model` reports 6.9 on the 3.2 Protons. - For shader changes, the wave sizes tested: no shader changes. - `cargo test` passed for the crates it touches: under Proton, yes, except the known `victory-gpu` failures above (none in code this PR changes). Natively on Windows: not run; I have no Windows machine. - On a Windows machine, these would confirm it: `cargo test -p victory -p victory-core -p victory-pipeline -p victory-hle`. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #1294 (also edits `ci.yml`; whichever merges second needs a rebase), #1517 / #1527 / #1566 (main's clippy; the new `linux-cross` job is red until they merge, as the Windows job is), #925 / #605 / #627 (DXC fallback: the 12 helper-shader failures listed above), #873 / #926 / #1199 / #1226 (also edit `docs/linux-proton.md`), #1355 (replaces one of the descriptor-byte tests that fail under Proton). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase 0 of docs/proton-plan.md, on Arch Linux with GE-Proton and umu.

- CI: a linux-cross job runs cargo xwin clippy and build.
- scripts/play-proton.sh starts victory.exe under Proton (umu-run or
  Proton's own script). It passes the program by its Z:\ path, because
  console output is lost with a Unix path. It also sets
  PROTON_ENABLE_NVAPI and keeps vkd3d-proton's cache in the prefix.
- scripts/test-proton.sh builds the workspace's tests for Windows and runs
  each under Proton, skipping five that cannot pass in a prefix.
- apps/victory/src/wine.rs logs what a run under Wine stands on: Wine
  build, kernel, vkd3d-proton and dxvk-nvapi versions, nvngx.dll and
  vm.max_map_count. It warns about vkd3d-proton 3.1.
- Asset policy: a Linux build's Unix root path is read through Z:.
- net: Wine's ws2_32 lacks WSAConnectByList and GetAddrInfoExA. Those
  calls now fail the connect or the lookup instead of panicking.
- Three clippy warnings already on main fixed.

Under Proton, every crate's tests pass except 19 in victory-gpu. Their
causes are recorded in docs/proton-plan.md: the helper shaders' D3DCompile
fails, Wine has no placeholder query, and descriptors differ.

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-28 22:41:06 +00:00
This pull request has changes conflicting with the target branch.
  • .gitignore
  • Cargo.lock
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1630'
git switch 'github-bot/gh-1630'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1630'
git switch 'github-bot/gh-1630'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1630'
git switch 'main'
git merge --squash 'github-bot/gh-1630'
git switch 'main'
git merge --ff-only 'github-bot/gh-1630'
git switch 'main'
git merge 'github-bot/gh-1630'
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/trustno1-coder--VIctory-NVIDIA!1630
No description provided.