Proton: Linux cross-build CI, a launcher, and the tests run under Wine #1630
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1630
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1630"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@cva68 on GitHub · 2026-11-28 22:38 UTC · original
cva68:proton-phase0→main· +926 −11 · 15 files · 2 commits · openNo issue. This follows on from docs/linux-proton.md (
73ce91d). Based ond4b5d51.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
linux-crossjob runscargo xwin clippy -- -D warningsandcargo xwin build -p victory, so a change that builds only with MSVC shows up in review.scripts/play-proton.sh: startsvictory.exeunder Proton (umu-run, or Proton's own script).victory.exeand the dump by theirZ:\paths. With a Unix path, Proton starts the program through a wrapper and its console output is lost.PROTON_ENABLE_NVAPI=1..gitignorealso coversvkd3d-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.apps/victory/src/wine.rs): under Wine only, logs onerunning under Wineline at the start. It has the Wine build, the kernel, the vkd3d-proton and dxvk-nvapi versions, whether the driver'snvngx.dllis in the prefix, andvm.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 lowvm.max_map_count. This makes Linux reports comparable.apps/victorygainstracingas a dependency.Fixes found by running the tests under Wine
net.rs: Wine'sws2_32has noWSAConnectByListorGetAddrInfoExA. Both overrides went throughhost!, 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 UnixCARGO_MANIFEST_DIR, which Windows reads as relative to the current drive. The compiled repo root is now read through Wine'sZ:drive. This applies only to a path starting with/, so a Windows build is unaffected. The.victory-rootancestor 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-gputests fail under Proton. Details are in docs/proton-plan.md.D3DCompile(Proton's d3dcompiler_47) refuses the helper shaders or drops their[RootSignature]: the ambient, indirect, clamp and depth-twin passes. #925 addresses this.NtQueryVirtualMemoryclass 7, so placeholders cannot be told apart from plain reservations. Three of the five are section-view guard tests still to be looked at.How it was tested
victory shader-modelalso 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.WSAConnectByListorGetAddrInfoExAunder Wine would end the process.cargo xwin build --release -p victorybuilds.cargo xwin clippy --workspace --all-targetsadds no findings. The findings already onmainremain; see Related.victory-gpu(529 passed, 21 failed, as listed above).3.2.0 (v3.1-83-gcae8353ed-...)for GE-Proton11-14's build) and warns only on vkd3d-proton 3.1.victory shader-modelreports 6.9 on the 3.2 Protons.cargo testpassed for the crates it touches: under Proton, yes, except the knownvictory-gpufailures above (none in code this PR changes). Natively on Windows: not run; I have no Windows machine.cargo test -p victory -p victory-core -p victory-pipeline -p victory-hle.Checked for overlap
ci.yml; whichever merges second needs a rebase), #1517 / #1527 / #1566 (main's clippy; the newlinux-crossjob 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 editdocs/linux-proton.md), #1355 (replaces one of the descriptor-byte tests that fail under Proton).Co-Authored-By: Claude Opus 5.5 [email protected]
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.Merge
Merge the changes and update on Forgejo.