Linux Enhance GPU pipeline handling and improve shader program structure #3322

Open
github-bot wants to merge 7 commits from github-bot/gh-3322 into main AGit
Owner

@⁠theDVNVS on GitHub · 2026-11-26 17:58 UTC · original
theDVNVS:DVNVS → main · +384 −68 · 6 files · 7 commits · open

Still in progress.

**@⁠theDVNVS** on GitHub · 2026-11-26 17:58 UTC · [original](https://github.com/Marvisak/VIctory/pull/3322) `theDVNVS:DVNVS` → `main` · +384 −68 · 6 files · 7 commits · open Still in progress.
The windows crate passes a dangling non-null pointer for an empty slice;
vkd3d-proton rejects that with E_INVALIDARG, so under Proton there was no
host pipeline library and pipelines were never kept on disk.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Wine's ws2_32 exports neither; a title calling them panicked in the host!
lookup and aborted. The overrides now fail the call (WSAEOPNOTSUPP, or the
name is not found), and the export test skips them where they are missing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every s_endpgm (and the loop-limit abort) now branches to one shared ret
block, as DXC's output always has. A loop left by both a break and a
return could not be structured by dxil-spirv (vkd3d-proton): it emitted
invalid SPIR-V ("exits the loop ... but not via a structured exit"),
on which RADV segfaulted in vkCreateGraphicsPipelines (exit code 3).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 17:59:57 +00:00
Author
Owner

@⁠Dukestar69 on GitHub · 2026-11-26 18:08 UTC · original · approved these changes

Reviewed and verified locally on Windows 11 x64 (RTX 5090):

  • Passing null for empty CreatePipelineLibrary blobs, unifying function exits into a single ret_block() for dxil-spirv, and the Wine/Proton indirect & net adjustments build and pass cleanly on Windows 11 + RTX 5090 as well.
  • cargo test -p victory-gpu --lib indirect:: -- --test-threads=1 (RTX 5090): 6 passed, 0 failed.
  • cargo test -p victory-gpu --lib pipeline::library:: -- --test-threads=1 (RTX 5090): 11 passed, 0 failed.
  • cargo test -p victory-hle --lib modules::net:: -- --test-threads=1: 2 passed, 0 failed.
  • cargo clippy -p victory-shader -p victory-gpu -p victory-hle --all-targets -- -D warnings: clean.
  • cargo xtask policy: 192 files ok.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

**@⁠Dukestar69** on GitHub · 2026-11-26 18:08 UTC · [original](https://github.com/Marvisak/VIctory/pull/3322#pullrequestreview-6078790068) · **approved these changes** Reviewed and verified locally on Windows 11 x64 (RTX 5090): - Passing `null` for empty `CreatePipelineLibrary` blobs, unifying function exits into a single `ret_block()` for `dxil-spirv`, and the Wine/Proton indirect & net adjustments build and pass cleanly on Windows 11 + RTX 5090 as well. - `cargo test -p victory-gpu --lib indirect:: -- --test-threads=1` (RTX 5090): 6 passed, 0 failed. - `cargo test -p victory-gpu --lib pipeline::library:: -- --test-threads=1` (RTX 5090): 11 passed, 0 failed. - `cargo test -p victory-hle --lib modules::net:: -- --test-threads=1`: 2 passed, 0 failed. - `cargo clippy -p victory-shader -p victory-gpu -p victory-hle --all-targets -- -D warnings`: clean. - `cargo xtask policy`: 192 files ok. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Author
Owner

@⁠Jackster on GitHub · 2026-11-26 23:21 UTC · original

Windows 11, 63bcca4 + this PR:

  • cargo test -p victory-gpu --lib: 231 passed / 0 failed / 1 ignored — the same counts as unpatched 63bcca4 here.
  • cargo clippy -p victory-gpu --all-targets -- -D warnings: clean.

Scope note: this PR is Linux-facing (indirect handling and shader program structure), so what a Windows box can establish is that it builds and leaves the suite where it was — which it does. The behaviour change itself needs a Linux run. AI-assisted.

**@⁠Jackster** on GitHub · 2026-11-26 23:21 UTC · [original](https://github.com/Marvisak/VIctory/pull/3322#issuecomment-7205473389) Windows 11, `63bcca4` + this PR: - `cargo test -p victory-gpu --lib`: 231 passed / 0 failed / 1 ignored — the same counts as unpatched `63bcca4` here. - `cargo clippy -p victory-gpu --all-targets -- -D warnings`: clean. Scope note: this PR is Linux-facing (indirect handling and shader program structure), so what a Windows box can establish is that it builds and leaves the suite where it was — which it does. The behaviour change itself needs a Linux run. AI-assisted.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3322/head:github-bot/gh-3322'
git switch 'github-bot/gh-3322'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3322'
git switch 'github-bot/gh-3322'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3322'
git switch 'github-bot/gh-3322'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3322'
git switch 'main'
git merge --squash 'github-bot/gh-3322'
git switch 'main'
git merge --ff-only 'github-bot/gh-3322'
git switch 'main'
git merge 'github-bot/gh-3322'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!3322
No description provided.