Run on Proton: a Windows build of victory, launched inside a Proton prefix #42
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!42
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-42"
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?
@LazyHatGuy on GitHub · 2026-11-25 12:37 UTC · original
LazyHatGuy:proton→main· +8772 −1752 · 103 files · 54 commits · closed without mergingWhat this does
Proton supplies the Windows environment this loader needs — the Win32 loader,
and D3D12 through dxvk and vkd3d-proton — so the game can be run from a Linux
box with a Windows build of
victory:cargo wincross-buildsvictory.exeforx86_64-pc-windows-gnu(
mingw-w64is the only system package needed),cargo win-checktype-checks the whole Windows tree, tests included, from Linux.
proton/run.shfinds the newest GE-Proton, then the newest plain Proton,makes a fresh prefix under
~/.local/share/victory/proton/pfx, setsUMU_IDand launches throughwaitforexitandrunso stdout and the exitcode come back (Proton's script swallows them when it goes through
steam.exe). It forcesd3d12/dxginative so vkd3d-proton is used, and--d3dcompiler FILEcopies a Win10-erad3dcompiler_47.dllinto theprefix and pins it
native.docs/proton.mdrecords what the runs cost to find: the prefix layout(
pfx/, thedosdevicesprobe), GE-Proton 10+ mappingZ:to/so ahost path is
Z:\mnt\gamesand--zis a no-op, the start screen sittingat 30 fps and 13 draws a frame until a pad presses a key, and why
d3dcompiler_47matters: Wine's builtin and the June-2010 copywinetricks installs fail in two different ways (
E5005onCreateRootSignature,X3506on*_5_1), while a Windows 10-era copyworks.
proton/smoke.shandcargo xtask scriptstest the Proton path at threedepths: the prefix and tool resolution, a host D3D12 device under Proton,
and the
victory-gpusuite running there.victory-gpu: the indirect-argument clamp's inline program is compiledthrough one
host::compilethat retries*_5_1at*_5_0, because Wine'sd3dcompiler_47does not know the5_1profile name at all.(
VICTORY_NO_WATCHDOG, byte-checked against build 1.0.2.1), andrun.shdefaults both Wine workarounds on:
VICTORY_COPY_MEMORY=1(#19, #53) andVICTORY_NO_WATCHDOG=1(victory-fork#416), with--watchdogand envopt-outs.
run.shdefaults MangoHud on under GE-Proton (MANGOHUD=1) for fps,frametimes and GPU load on screen; the Valve Proton family defaults it
off (MangoHud 0.8.x cannot present through its shared present mode —
such runs end early with exit 5),
--mangohudforces it. Logs carry noANSI colour under Wine or into a redirected stream.
windows-crossjob on Ubuntu:cargo win-checkthencargo win, so the Proton build cannot rot without a Windows box.Differences from the series this was ported from
The Proton work came over commit by commit from
fxceless/victory-fork's
protonbranch. Two things were kept different here:
fmtstepbecause its tree was formatted by a newer rustfmt; here
Format all files(in the Linux PR) made the tree reproducible with the pinned 1.98.1, so the
gate is green and one small format commit closes the gap left by the picks.
host::compileis used by the indirect clamp only, as upstream has it.This fork's own inline programs (
ambient.rs,card.rs, thedescriptor/host.rstests) still callD3DCompiledirectly withcs_5_1,so they need the pinned Win10-era
d3dcompiler_47under Proton. Routingthem through
host::compileas well is a small follow-up.Relationship to the Linux PR
GitHub cannot base a PR into this repo on a branch of mine, so both PRs point
at
mainand this one contains the Linux commits as well. Merge the LinuxPR first (or rebase this branch after it) and the diff here shrinks to the
18 Proton commits.
Checked here (Arch, toolchain pinned to 1.98.1)
cargo win-check(whole Windows workspace,--all-targets,x86_64-pc-windows-gnu): compiles. Four warnings, all onmaintoo(
field hair is never read,describe_slot,test_queue,int_value).cargo win: linkstarget/x86_64-pc-windows-gnu/release/victory.exe.victory-gpusuite under GE-Proton11-11 (cross-built test binarythrough
proton/run.sh): 106 of 115 pass, 4 ignored; the five failuresare pre-existing Wine gaps characterized in
docs/proton.md, unchangedby this branch's defaults.
cargo check --workspace --all-targets --lockedclean,
cargo test --workspace --locked323 passed / 12 ignored, the onefailure being the pre-existing
xtaskpolicy test (emit/lower.rsoverthe 512 kB asset limit, listed in the README).
Run here (2026-11-25, AMD/RADV, this machine)
A full title run (1.0.2.1, diagnostics build, scripted Enter presses) with
the launcher's defaults: start screen, intro cinematic at ~81 fps and the
rendered "FINISH SETUP?" menu; the loading stretch lives well past the
~30 s stall window that used to end it, with both watchdog hooks reporting
applied=2.VICTORY_CAPTUREframes are black only while the intro videoplays (that path bypasses the captured buffer); menus capture correctly.
World entry is a mesh-shader gap under Wine, per Proton build: GE-Proton11-11
and plain Proton 11.0 exit with code 3 at the first mesh pipeline bind
(reverting
main's queue-wait rework changes nothing); Proton Hotfix createsthe pipelines and runs the world — dialogue audio and subtitles render over
black mesh geometry; a minute or two into the world it ends itself with
exit code 5. The suite has no mesh test, so the path had no Wine
coverage;
docs/proton.mdrecords the runs, the per-Proton outcomes and theissue numbers. Menus, intro and loading are verified; world visuals are not,
under any Proton installed here.
This PR was AI assisted.
No checks run on this PR until a maintainer approves the Actions run (the run
sits in
action_required, like the other open PRs), so the build resultsabove are from running the same commands locally.
Every lane exit and the loop-limit abort used to terminate in their own `ret` block. vkd3d-proton 3.1 wraps a pixel shader that discards under divergence in a helper-demotion loop, and with several returns its structurizer emits SPIR-V whose exit bypasses the loop merge. spirv-val rejects that ("exits the loop ... but not via a structured exit"), Mesa's spirv_to_nir returns null, and RADV dereferences it inside vkCreateGraphicsPipelines; winevulkan turns the fault into ExitProcess(3), which is how the title died at its first mesh bind under GE-Proton. Route all exits through one shared return block, as DXC does. The title's mesh+pixel pair now compiles and dispatches under GE-Proton, and both stages' SPIR-V validates. Co-Authored-By: Qwen 4 Max <[email protected]> 🤖 Generated with [OpenCode](https://opencode.ai) (Qwen4 Max)A branch that leaves nested loops (a multi-level break) used to target the outer block directly. dxil-spirv's structurizer misplaces its join ladders for that shape and Mesa rejects the SPIR-V ("branches to the loop construct, but not to the loop header"), which RADV turns into a null dereference and winevulkan into ExitProcess(3). Route such branches through one merge block per loop they leave, innermost first, as DXC emits them. Co-Authored-By: Qwen 4 Max <[email protected]> 🤖 Generated with [OpenCode](https://opencode.ai) (Qwen4 Max)@orkeilius on GitHub · 2026-11-25 13:01 UTC · original
This one run worse than the other PR on Zettrox/ztrx. Black screen only :(
@LazyHatGuy on GitHub · 2026-11-25 13:07 UTC · original
Which PR?
@orkeilius on GitHub · 2026-11-25 13:16 UTC · original
The one you made on the other fork (https://github.com/Zettrox/ztrx/pull/2).
But looking at #19 it seems to be a problems with the fork not your pr
@orkeilius on GitHub · 2026-11-25 13:30 UTC · original
Also with your pr and #53. i got the same result, loop on lucia loading screen then crash
@LazyHatGuy on GitHub · 2026-11-25 14:05 UTC · original
WIP

@LazyHatGuy on GitHub · 2026-11-25 14:10 UTC · original
Current progress

@LazyHatGuy on GitHub · 2026-11-25 14:31 UTC · original
First cut scene has audio but no visuals
@adrianmjim on GitHub · 2026-11-25 17:23 UTC · original
Read through at head
e89b3c0(not run). It contains #41's commits plus its own, so the two CI points on #41 apply here too:int_valueis still unused (bitcode.rs:350), so the Windows test job fails under the action's defaultbuild-warnings: deny. In addition:windows-crossjob:ci.yml:65passestargets: x86_64-pc-windows-gnu, but the action's input (at the pinned SHA) istarget. The unknown input is ignored andrust-toolchain.tomllists only the MSVC target, socargo win-checkwill not findstdforx86_64-pc-windows-gnu.VICTORY_TEXTURE_NO_WAITis exported byrun.sh(line 224) and described in its help, but nothing in the tree reads it.VICTORY_NO_WATCHDOG=0:run.shnow unsets it for0, good. Started withoutrun.sh, the loader still turns the hooks on for any value,0included (victory-loader/src/windows.rs:87,var_os(..).is_some()).7089c13(authoranonymous) rewrites title code in memory at two RVAs whenVICTORY_NO_WATCHDOGis set. The patch bytes cannot be checked without the executable, so they deserve a look against a disassembly before merging.@orkeilius on GitHub · 2026-11-26 05:57 UTC · original
i retested (i haven't since b702205 ). Now my GPU (9060xt) crash before or at the start of the loading screen
Log (feature diag enabled )
@LazyHatGuy on GitHub · 2026-11-26 14:36 UTC · original
First cut scene has audio but no visuals
@ayoubkrmt on GitHub · 2026-11-27 00:47 UTC · original
abandoned pr?
Pull request closed