GPU: 512 MiB pipeline-worker stacks #28
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/fxceless--victory-fork!28
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-28"
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?
@meeyao on GitHub · 2026-11-24 20:28 UTC · original
meeyao:linux-findings→main· +6 −0 · 1 files · 1 commits · openThe pipeline workers run on Rust's default 2 MiB stack. On the world's largest mesh programs the translator's recursion overflowed it, the worker died, and the title waited forever for a pipeline that was never made: the log stops after
host pipeline: making shaders=["mesh …"], CPU stays busy, no frame is presented.The workers are half the logical processors, capped at 8, so a 512 MiB stack reserves at most 4 GiB of address space. Windows reserves stack, it does not commit it.
55679a0547649d0b,afeea48bbb9913ad,e8c962358d862e3f,44a9625f01769f33).This is not Linux-only: on Windows, @Peppacodes saw the overflow inside NVIDIA's own shader compiler (
nvgpucomp64.dll) on a pipeline worker, which is why the value is well above their 64 MiB.This is the stacks part of the original #28, split as asked. The DXC fallback belongs to #20, the watchdog hooks to the loader PR, and the copy/pipeline-library work to its own PR.
Checked with
cargo xwin check --all-targets -p victory-gpu --target x86_64-pc-windows-msvc. Not run in the title: no game files here.@meeyao on GitHub · 2026-11-24 23:57 UTC · original
Split as asked. This PR is now only the 512 MiB pipeline-worker stacks (one file, six lines):
RTS0.The old head is kept at
meeyao/victory-gta6:linux-findings-backup-2026-11-25.On the value: the branch had already gone past 32 MiB before this was opened — 128 MiB still overflowed on four compute programs, which is why the diff says 512 MiB. @Peppacodes' data from NVIDIA's compiler on Windows is why it is well above 64 MiB; those four recurse without bound and are skipped per run.
@Peppacodes on GitHub · 2026-11-24 22:04 UTC · original · edited 2026-11-25 00:04 UTC
Both the watchdog hook and the bigger worker stacks are needed on native Windows too. Data from an RTX 5080 (Windows 11, driver 621.24, 32.0.16.2124, Ryzen 7 5700X3D, 32 GB) running this repo at
d279e69withVICTORY_RELAY=2:+0x23cf683, on the first cold pipeline compile.nvgpucomp64.dll), which also runs on the pipeline workers, not only in the translator.c7d7a6283fad3cd6).E_OUTOFMEMORYand its dispatches were dropped.AI-assisted (Claude Code). Counts and hashes only; nothing from the game attached.
@gingertonik on GitHub · 2026-11-25 05:08 UTC · original
An addition on the programs that "recurse without bound and are skipped per run".
We had 4 such compute programs: 559d9f0184e15fe3, a1b20bc47e3c9597, e8c962358d862e3f and fdd56d97a806bcca. 4 workers overflowed in each of 4 runs, 2 with the default stack and 2 with 64 MiB. One is in your list (e8c962358d862e3f); the other three differ from yours.
All four are dxil-spirv failing on two control-flow shapes that we emit:
A Debug build of dxil-spirv 114e664e (the version inside vkd3d-proton 2576c0b4a) asserts on them at
cfg_structurizer.cpp:3492and:3486. In Release the recursion never ends:With #257, all four convert, and they need not be skipped. In game that gave 0 overflows and 0 pipelines left "being made", with 64 MiB stacks.
This says nothing about the reason this PR gives for 512 MiB: the translator's recursion on the largest mesh programs, and NVIDIA's compiler on Windows. We did not test anything below 64 MiB with #257 applied, so we do not know whether those still need the larger stack.
Environment: CachyOS, kernel 7.3.5, NVIDIA 620.73.04, RTX 4080; GE-Proton11-12 (Wine) with vkd3d-proton 2576c0b4a; offline dxil-spirv 114e664e.
AI-assisted (Hermes).
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.