GPU: give pipeline workers room for NVIDIA's shader compiler #1129
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1129"
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 Marvisak/VIctory. Originally posted by divyeshganta on 2026-11-24T16:02:12Z.
Fixes #966.
Pipeline workers now use a 64 MiB stack so NVIDIA's recursively compiling shader compiler cannot overflow Rust's default 2 MiB worker stack and have the pipeline rejected as
E_OUTOFMEMORY. The stack reserves address space and commits pages as they are used.Patch by Peppacodes (
d09c31b4c14481155e7d0b33b0aea30d9333f152), carried with its original authorship. The report reproduces the failure on an RTX 5080 and confirms the same world shader creates a pipeline with the larger stack. A separate RTX 4090/Wine check verified the worker reservation change with a small shader, not the reported title shader.The contributor reports Windows 11 workspace tests passing (342 passed, 0 failed, 6 ignored), all-target/all-feature Clippy clean, and
cargo xtask policypassing. I have not rerun tests locally.Imported from Marvisak/VIctory. Originally posted by Ctrl-Alt-Haze on 2026-11-24T16:51:22Z.
Independent verification of
d09c31bon Windows 11, RTX 5070 Ti (driver32.0.16.2135) + WARP (VICTORY_D3D12_DEBUG=1), dxil.dll1.8.2502.11, Rust1.98.1againstupstream/main(ffe310eb):ffe310eb;cargo xtask policy:154 files ok; bothclippychecks pass.cargo test --workspace --locked: 342 passed, 0 failed, 6 ignored.victory-shader --features host(VICTORY_D3D12_DEBUG=1, RTX 5070 Ti &VICTORY_WARP=1): 120 passed, 0 failed, 1 ignored (0 D3D12 debug errors/warnings).victory-gpu --features diagnostics(VICTORY_D3D12_DEBUG=1, RTX 5070 Ti &VICTORY_D3D12_WARP=1): 53 passed, 0 failed, 1 ignored (pipeline::make::tests::first_use_is_made_by_a_workercreates a 64 MiB worker stack cleanly on RTX 5070 Ti & WARP; 0 D3D12 errors/warnings).PIPELINE_STACK = 64 << 20), zerounsafeadded. Ready to merge.AI-assisted verification on local RTX 5070 Ti + WARP; no game data.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:01:33Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
d09c31b:cargo test -p victory-gpupasses, 50 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
upstream-sync referenced this pull request2026-11-24 19:03:41 +00:00
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:36:22Z.
Automated triage for the maintainers.
Needs rebase. This PR does not merge cleanly into current
main(ac2525d). Conflicting files:crates/victory-gpu/src/pipeline/make.rs.The content has not been reviewed yet; it will be once the branch is rebased onto
main.Generated by Claude Code
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.