Linux/Proton: pipeline library, worker stacks, watchdog, Wine HLSL fixes (black screens, dark interiors, compare pass) #421
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!421
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-421"
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?
@Tymon3310 on GitHub · 2026-11-27 00:40 UTC · original
Tymon3310:linux-proton-fixes→a-publier· +620 −55 · 18 files · 4 commits · openWhat
Everything this tree needed to render and run properly under Proton on Linux, as four commits on
a-publier(4eb6cfd):CreatePipelineLibrarywith a non-null blob of length 0, so under Wine no pipeline was ever kept. Same fix as #124.VICTORY_NO_WATCHDOG=1(off by default) applies two byte-checked patches so the title's watchdog doesn't end the process while frames are slow (#143, #344).d3dcompiler_47refuses the clamp, ambient and window-check shaders (#183), and the host rejects Wine's embedded root signatures (E_FAIL).rootstringacceptsFILTER_MIN_MAG_MIP_LINEAR. Without it, the parser from (2) refuses the two-plane composer's root signature,Composer::newfails every frame, and the intro, menus and loading screens are black under Proton (two-plane composer not made; showing base plane only).GetDimensionson writable textures, noLoad4on a writable byte buffer. Wine's HLSL compiler (vkd3d-shader 2.0 in proton-cachyos 11.0, and 2.1 too) refuses both with E5005:no stand-in for the indirect light error=Call failed), so interiors were lit only by direct light. Its passes now take width, height and slices from their root constants (16 now).no host copies in the card's memory: the compare could not be made). It now reads its hashes through aRWStructuredBuffer<uint4>view of the same bytes.Measured
RX 6800 XT 16 GB (RDNA2), Ryzen 9 5950X, 94 GB RAM, Arch (kernel 7.3.6-zen), RADV / Mesa 26.3.1, proton-cachyos 11.0 with the views-in-a-tree wineserver (#248's guide), vkd3d-proton
71cae09,vm.unprivileged_userfaultfd=1, Proton's ownd3dcompiler_47. Series S profile, early world. Release build of this branch's code, withplay.ps1's settings andVICTORY_PORT_DESCRIPTORS/CBV/GUARD/JOURNAL=1.VICTORY_PORT_CONSTANTSwas off: in-place sections don't work under Wine (#19, and my comment on #248).Most of the gain is the compare pass: without it, finding what changed in the card copies fell back to the CPU.
Checked
cargo build --release --target x86_64-pc-windows-gnu --bin victoryandcargo xtask policy(273 files ok).ambient.rs(keep, mean, place, gather, raise, clear_air) andCARD_COMPAREcompiles withvkd3d-compiler -x hlsl -p cs_5_1(vkd3d-shader 2.1). Before (4), keep/mean/clear_air and the compare failed there.E5xxxfrom vkd3d-shader (VKD3D_SHADER_DEBUG=warn), the stand-in reportsrole=Radiance size=[640, 360], and interiors are lit.Not tested
AI-assisted (Claude Code): the fixes, runs and this text; I ran them on my machine. No game files, captures or screenshots.
🤖 Generated with Claude Code
@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-27 00:40 UTC · original · reviewed
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
@MamaLeVrai on GitHub · 2026-11-27 02:22 UTC · original
Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At
03e5bd8(on Windows, not Proton):cargo test --release -p victory-gpu --lib396 passed, 0 failed, 34 ignored;victory-loader56 passed. So the Linux changes don't break the native Windows path here.AI-assisted (Claude Code); no game data.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.