Linux/Proton, RTX 5080: 7 pipelines never finish (≈4 fps at default pipeline wait); ray tracing warps geometry #301

Open
opened 2026-11-27 14:46:14 +00:00 by Blexcellent · 4 comments
Blexcellent commented 2026-11-27 14:46:14 +00:00 (Migrated from github.com)
Contributor

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).

  1. Default VICTORY_PIPELINE_WAIT_MS (500): ~4 fps once in the cell.
  2. VICTORY_PIPELINE_WAIT_MS=0: 23-31 fps, with some objects flickering.
  3. Add VICTORY_BVH_BUILDER=1: ~5 fps once all pipelines are built; on some launches geometry warps.

What you observed

  1. ~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.

  2. 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

With default VICTORY_PIPELINE_WAIT_MS (500):
INFO victory_gpu::host: 3.6 fps, 274.0 ms/frame (22.0 preparing: copies 14.7 ms 66.9 MB, textures 0.4 ms 36.0 MB; 0.0 on the GPU; 6.9 copying back 25.3 MB), 4790 draws/frame, dropped 292 without a host pipeline (7 being made) and 596 indirect
INFO victory_gpu::queue::behind: submissions prepared by a thread of ours, per frame (VICTORY_ASYNC_SUBMIT): 29.8 in 1.0 presents ... threads of the title waited 0.0 ms for room in the line, 228.8 ms at presents
INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 238.9 ms (the card about 12% busy by this count)

With VICTORY_BVH_BUILDER=1, all pipelines built:
4.9 fps, 205.1 ms/frame (26.0 preparing: copies 14.2 ms 96.5 MB, textures 0.1 ms 24.8 MB; 172.4 on the GPU; 27.5 copying back 26.9 MB), 4798 draws/frame, dropped 3 without a host pipeline (29 being made)
WARN victory_gpu::memory: title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped); those that are the title's are there now frame=871 pages=330 made=45 held=7646
WARN victory_gpu::draw: textures picked by index: the card has no room for more; they wait
<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:6648682639 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/301). Originally posted by [Blexcellent](https://github.com/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). 1. Default VICTORY_PIPELINE_WAIT_MS (500): ~4 fps once in the cell. 2. VICTORY_PIPELINE_WAIT_MS=0: 23-31 fps, with some objects flickering. 3. Add VICTORY_BVH_BUILDER=1: ~5 fps once all pipelines are built; on some launches geometry warps. ### What you observed 1. ~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. 2. 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 ```text With default VICTORY_PIPELINE_WAIT_MS (500): INFO victory_gpu::host: 3.6 fps, 274.0 ms/frame (22.0 preparing: copies 14.7 ms 66.9 MB, textures 0.4 ms 36.0 MB; 0.0 on the GPU; 6.9 copying back 25.3 MB), 4790 draws/frame, dropped 292 without a host pipeline (7 being made) and 596 indirect INFO victory_gpu::queue::behind: submissions prepared by a thread of ours, per frame (VICTORY_ASYNC_SUBMIT): 29.8 in 1.0 presents ... threads of the title waited 0.0 ms for room in the line, 228.8 ms at presents INFO victory_gpu::host: the card's clock per frame: nothing of ours queued 238.9 ms (the card about 12% busy by this count) With VICTORY_BVH_BUILDER=1, all pipelines built: 4.9 fps, 205.1 ms/frame (26.0 preparing: copies 14.2 ms 96.5 MB, textures 0.1 ms 24.8 MB; 172.4 on the GPU; 27.5 copying back 26.9 MB), 4798 draws/frame, dropped 3 without a host pipeline (29 being made) WARN victory_gpu::memory: title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped); those that are the title's are there now frame=871 pages=330 made=45 held=7646 WARN victory_gpu::draw: textures picked by index: the card has no room for more; they wait ```
borntofrag34 commented 2026-11-27 20:53:48 +00:00 (Migrated from github.com)
Author
Contributor

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 err channel, which WINEDEBUG=-all hides (Windows would end the process instead). The pipeline then stays "being made" for good, every frame that uses it waits its whole VICTORY_PIPELINE_WAIT_MS, and the worker is gone. With WINEDEBUG=err+all you should see lines like virtual_setup_exception stack overflow ..., one per lost worker. We had six, in compute programs 17829ac71aab4e8d, a1b20bc47e3c9597, afeea48bbb9913ad, e8c962358d862e3f, 559d9f0184e15fe3 and 32ed072b9f845048. 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 from CFGStructurizer::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 a WaveReadLaneAt / QuadReadLaneAt call, 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, where WaitForMultipleObjects takes 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 in pipeline/make.rs, so it would be a port rather than a cherry-pick.

🤖 Generated with Claude Code

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7227941170 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/301#issuecomment-7227941170). Originally posted by [borntofrag34](https://github.com/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 `err` channel, which `WINEDEBUG=-all` hides (Windows would end the process instead). The pipeline then stays "being made" for good, every frame that uses it waits its whole `VICTORY_PIPELINE_WAIT_MS`, and the worker is gone. With `WINEDEBUG=err+all` you should see lines like `virtual_setup_exception stack overflow ...`, one per lost worker. We had six, in compute programs `17829ac71aab4e8d`, `a1b20bc47e3c9597`, `afeea48bbb9913ad`, `e8c962358d862e3f`, `559d9f0184e15fe3` and `32ed072b9f845048`. 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 from `CFGStructurizer::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 a `WaveReadLaneAt` / `QuadReadLaneAt` call, 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, where `WaitForMultipleObjects` takes 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 in `pipeline/make.rs`, so it would be a port rather than a cherry-pick. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
zmelumian972 commented 2026-11-28 07:20:45 +00:00 (Migrated from github.com)
Author
Contributor

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 main at fe7c6e5. Setup: CachyOS, RTX 5090, NVIDIA 620.73.04, GE-Proton11-14 with the viewtree wineserver, native d3dcompiler_47. Series S profile, WINEDEBUG=err+all, default VICTORY_PIPELINE_WAIT_MS:

  • Every frame report showed (0 being made).
  • The Wine err channel had no stack overflow lines, so no pipeline worker died (that's the failure borntofrag34 described).
  • Last night, the seven #133 recipes all completed in victory warm --used --again on b6ea434.

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 current main from someone who gets that far.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7235874073 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/301#issuecomment-7235874073). Originally posted by [zmelumian972](https://github.com/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 `main` at `fe7c6e5`. Setup: CachyOS, RTX 5090, NVIDIA 620.73.04, GE-Proton11-14 with the viewtree wineserver, native d3dcompiler_47. Series S profile, `WINEDEBUG=err+all`, default `VICTORY_PIPELINE_WAIT_MS`: - Every frame report showed `(0 being made)`. - The Wine `err` channel had no `stack overflow` lines, so no pipeline worker died (that's the failure borntofrag34 described). - Last night, the seven #133 recipes all completed in `victory warm --used --again` on `b6ea434`. 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 current `main` from someone who gets that far.
TaynanGT commented 2026-11-29 11:38:03 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7255244980 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/301#issuecomment-7255244980). Originally posted by [TaynanGT](https://github.com/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.
TaynanGT commented 2026-11-30 17:01:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:01:57Z.


main has moved to a new line of the code and everything is now named Vice-Tay: vice-tay.exe play, and VICE_TAY_* switches instead of VICTORY_* (details in #468). Could you check whether this still happens on the current main and say so here, with a log if you can?

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7285611429 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/301#issuecomment-7285611429). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-30T17:01:57Z. --- `main` has moved to a new line of the code and everything is now named Vice-Tay: `vice-tay.exe play`, and `VICE_TAY_*` switches instead of `VICTORY_*` (details in #468). Could you check whether this still happens on the current `main` and say so here, with a log if you can?
Sign in to join this conversation.
No labels
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.

Reference
TaynanGT/Vice-Tay#301
No description provided.