Linux/Proton, RTX 5080: 7 pipelines never finish (≈4 fps at default pipeline wait); ray tracing warps geometry #301
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from TaynanGT/Vice-Tay. Originally posted by Blexcellent on 2026-11-27T14:46:14Z.
Vice-Tay build
release, commit
4ee1a47(built 27 Nov 2026)Hardware and graphics driver
Ryzen 7 9800X3D, RTX 5080 16 GB, 32 GB RAM, NVIDIA driver 615.78.8. Linux (Bazzite) under GE-Proton11-14 with your linux/wineserver view-tree patch, Microsoft d3dcompiler_47 installed via Protontricks.
How to reproduce
New game, Series S profile, FSR 3.1.6 quality (VICTORY_FIDELITYFX_DIR), 1920x1080 window.
Settings: play.ps1 -Machine 4070 values set as environment variables (Proton can't run play.ps1), plus VICTORY_THIN_THREADS=12, VICTORY_UNDER_THREADS=8, VICTORY_PIPELINE_WORKERS=8.
Scene: the opening prison cell (first playable area).
What you observed
~7 pipelines never finish: the log shows "(7 being made)" permanently. With the default 500 ms wait, every frame waits on them: ~4 fps, title threads waiting ~229 ms per frame at presents, card ~12% busy. With VICTORY_PIPELINE_WAIT_MS=0: 23-31 fps, but objects flicker in and out (their draws are skipped). Any wait, even 30 ms, gives a black screen at ~3 fps.
Ray tracing (VICTORY_BVH_BUILDER=1): once pipelines are built, ~167 ms/frame on the GPU (~5 fps). VRAM 14.9 of 16.3 GB, reported budget 13.2 GB. On some launches, "shaders touched pages that had no copy" repeats and geometry/textures stretch and warp across the screen; the warning doesn't appear without ray tracing. One early ray-traced launch looked correct at 13-16 fps but I couldn't reproduce it (I think the RT pipelines weren't built yet and were skipped).
Proton notes for other Linux users: Wine's own d3dcompiler made the two-plane composer fail (Call failed 0x80004005; picture froze, audio kept going), so Microsoft's d3dcompiler_47 is needed. Your view-tree wineserver took wineserver CPU from 43.8% to 2.6% and fps from 18-20 to 23-31. VICTORY_PIPELINE_WORKERS=8 instead of 3 made the first build much faster.
Happy to test builds or send full VICTORY_LOG=info logs.
Diagnostic excerpt
Imported from TaynanGT/Vice-Tay. Originally posted by borntofrag34 on 2026-11-27T20:53:48Z.
This looks like what we hit under Proton on an RX 7900 GRE (RADV, Proton Experimental's vkd3d-proton 3.2.0), and both causes we found may apply here, since dxil-spirv is the same whatever the card.
The pipelines that never finish are pipeline workers that died. Wine ends a thread whose stack runs out and only says so on its
errchannel, whichWINEDEBUG=-allhides (Windows would end the process instead). The pipeline then stays "being made" for good, every frame that uses it waits its wholeVICTORY_PIPELINE_WAIT_MS, and the worker is gone. WithWINEDEBUG=err+allyou should see lines likevirtual_setup_exception stack overflow ..., one per lost worker. We had six, in compute programs17829ac71aab4e8d,a1b20bc47e3c9597,afeea48bbb9913ad,e8c962358d862e3f,559d9f0184e15fe3and32ed072b9f845048. A larger stack does not help: they overflow with 2 MiB, 64 MiB and 1 GiB alike.Why the stack runs out: dxil-spirv 114e664e (in vkd3d-proton 2576c0b4) recurses without end in
CFGNode::find_common_dominator/recompute_immediate_dominator, entered fromCFGStructurizer::flatten_subgroup_shuffles. It takes two things together: a loop with several back edges (our lowering keeps the console's graph, so a console loop with two jumps back has two latches, where DXC always gives one) and aWaveReadLaneAt/QuadReadLaneAtcall, which makes dxil-spirv run that pass before its structuriser. 624 of the title's 25,790 translations have both. dxil-spirv master (b540c8a2) converts all of them. A build of vkd3d-proton with it needs none of the following.What we changed, both Wine-only and both switchable:
VICTORY_SINGLE_LATCH(emit/bitcode.rs,single_latches): a program that reads lanes gets one latch per loop before it is written. All 25,790 then convert with that dxil-spirv, and no worker dies. Your #198 /8058344(fxceless #257's loop latches for Proton) looks like the same idea; if it covers lane reads in compute programs too, it may already be enough.VICTORY_PIPELINE_WATCH(pipeline/make.rs): under Wine a thread watches the workers. When one ends, the pipeline it was making is given up (its draws are dropped at once, as for a pipeline the host refuses), a warning names its shaders, and a new worker takes its place. (UwUCammie's follow-up keeps it working at 64 workers, whereWaitForMultipleObjectstakes 64 handles at most.)Here it took the frame from 287 ms (6 being made, card 18 % busy) to 47.9 ms (card 90 % busy), in the opening scene at 4K, before the other Wine work.
Code: https://github.com/borntofrag34/VIctory-7900XTX/tree/linux-wine. The write-up with the runs is
docs/linux-wine.md, "Cause 2" and "Why the stack runs out". Happy to open a PR here if it helps; your tree differs from ours inpipeline/make.rs, so it would be a port rather than a cherry-pick.🤖 Generated with Claude Code
Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-28T07:20:45Z.
The "7 being made" part looks like #133, which #198 fixed (
4fb1569, translator version 9). The report's build,4ee1a47, is from before that merge.Retest on
mainatfe7c6e5. Setup: CachyOS, RTX 5090, NVIDIA 620.73.04, GE-Proton11-14 with the viewtree wineserver, native d3dcompiler_47. Series S profile,WINEDEBUG=err+all, defaultVICTORY_PIPELINE_WAIT_MS:(0 being made).errchannel had nostack overflowlines, so no pipeline worker died (that's the failure borntofrag34 described).victory warm --used --againonb6ea434.This setup can't reach the prison cell yet, because #221 stops it in the intro. The cell scene and the ray-tracing half (
VICTORY_BVH_BUILDER=1, the warping) still need a retest on currentmainfrom someone who gets that far.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T11:38:03Z.
Thanks for the current-main retest. Zero pending pipelines and no worker stack overflow on this setup are useful evidence for the compilation part. The original prison scene and ray-tracing geometry issue still need an independent retest; #221's startup blocker should stay separate.
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:01:57Z.
mainhas moved to a new line of the code and everything is now named Vice-Tay:vice-tay.exe play, andVICE_TAY_*switches instead ofVICTORY_*(details in #468). Could you check whether this still happens on the currentmainand say so here, with a log if you can?