Translate geometry shaders and streamline shader cache keys #479

Open
github-bot wants to merge 1 commit from github-bot/gh-479 into a-publier AGit
Owner

@⁠agonisingbasher on GitHub · 2026-11-27 05:37 UTC · original
agonisingbasher:feat/geometry-shader-support → a-publier · +991 −96 · 12 files · 1 commits · open

Summary

  • Add geometry-shader translation, including LDS-backed stream I/O and copy-shader exports.
  • Include geometry stages in host pipeline validation.
  • Avoid allocating the combined shader-cache input on cache hits.
  • Skip malformed raw native entries without discarding valid packed entries.

Validation

  • git diff --check passed.
  • cargo test -p victory-shader could not run because Cargo is unavailable in the environment.
**@⁠agonisingbasher** on GitHub · 2026-11-27 05:37 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/479) `agonisingbasher:feat/geometry-shader-support` → `a-publier` · +991 −96 · 12 files · 1 commits · open ## Summary - Add geometry-shader translation, including LDS-backed stream I/O and copy-shader exports. - Include geometry stages in host pipeline validation. - Avoid allocating the combined shader-cache input on cache hits. - Skip malformed raw native entries without discarding valid packed entries. ## Validation - `git diff --check` passed. - `cargo test -p victory-shader` could not run because Cargo is unavailable in the environment.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 05:41:25 +00:00
Author
Owner

@⁠nomfpv on GitHub · 2026-11-27 05:46 UTC · original · approved these changes

**@⁠nomfpv** on GitHub · 2026-11-27 05:46 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/479#pullrequestreview-6083988705) · **approved these changes**
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-27 07:01 UTC · original

Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At 1041b2a: victory-shader 303 passed, 0 failed, 4 ignored; victory-gpu 396 passed, 0 failed, 34 ignored; victory-pipeline 7 passed.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-27 07:01 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/479#issuecomment-7212071200) Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At `1041b2a`: `victory-shader` 303 passed, 0 failed, 4 ignored; `victory-gpu` 396 passed, 0 failed, 34 ignored; `victory-pipeline` 7 passed. AI-assisted (Claude Code); no game data.
Author
Owner

@⁠gut0to on GitHub · 2026-11-27 14:26 UTC · original · reviewed

AI-assisted static review (ChatGPT); I did not run tests.

**@⁠gut0to** on GitHub · 2026-11-27 14:26 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/479#pullrequestreview-6089608283) · **reviewed** AI-assisted static review (ChatGPT); I did not run tests.
@ -0,0 +300,4 @@
Ok(exports)
}
pub(crate) fn raise(p: &Program, gs: &GeometryIo) -> Result<Streams, ShaderError> {
Author
Owner

@⁠gut0to on GitHub · 2026-11-27 14:26 UTC · original

Could you add a focused synthetic geometry-shader fixture for this new raise path? The diff introduces the GS ring reads/writes and EMIT/CUT handling but adds no geometry-specific tests; a GS plus copy-VS case could assert emitted vertices and a stream cut, with a malformed ring offset returning Unsupported. That would cover the new parser and lowering behavior without game data.

**@⁠gut0to** on GitHub · 2026-11-27 14:26 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/479#discussion_r4720542509) Could you add a focused synthetic geometry-shader fixture for this new `raise` path? The diff introduces the GS ring reads/writes and EMIT/CUT handling but adds no geometry-specific tests; a GS plus copy-VS case could assert emitted vertices and a stream cut, with a malformed ring offset returning `Unsupported`. That would cover the new parser and lowering behavior without game data.
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/479/head:github-bot/gh-479'
git switch 'github-bot/gh-479'

Merge

Merge the changes and update on Forgejo.
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-479'
git switch 'github-bot/gh-479'
git rebase 'a-publier'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-479'
git switch 'github-bot/gh-479'
git rebase 'a-publier'
git switch 'a-publier'
git merge --no-ff 'github-bot/gh-479'
git switch 'a-publier'
git merge --squash 'github-bot/gh-479'
git switch 'a-publier'
git merge --ff-only 'github-bot/gh-479'
git switch 'a-publier'
git merge 'github-bot/gh-479'
git push origin 'a-publier'
This discussion has been locked. Commenting is limited to contributors.
No description provided.