Validate mesh thread groups and initialize small amplification groups #81

Closed
github-bot wants to merge 1 commit from gh-pr/81/head into gh-pr/81/base
Owner

@⁠bambermf on GitHub · 2026-11-22 01:47 UTC · original
shader/mesh-group-dimensions → main · +56 −18 · 5 files · 95 commits · closed without merging

Mesh and amplification group dimensions now use the same checked thread count when read from PSV0, DXIL metadata, or the amplification register block. All-zero PSV0 dimensions still allow recovery from older shader metadata. Partially zero dimensions and oversized products produce a translation error.

The amplification prologue now initializes all four shared argument words even when the group has fewer than four lanes. Regression tests cover invalid dimensions at extraction and translation, and compile generated amplification shaders with 1, 3, and 128 lanes using DXC.

Tested with cargo test -p tombox-xshader --lib --test mesh on Windows.

**@⁠bambermf** on GitHub · 2026-11-22 01:47 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/81) `shader/mesh-group-dimensions` → `main` · +56 −18 · 5 files · 95 commits · closed without merging Mesh and amplification group dimensions now use the same checked thread count when read from PSV0, DXIL metadata, or the amplification register block. All-zero PSV0 dimensions still allow recovery from older shader metadata. Partially zero dimensions and oversized products produce a translation error. The amplification prologue now initializes all four shared argument words even when the group has fewer than four lanes. Regression tests cover invalid dimensions at extraction and translation, and compile generated amplification shaders with 1, 3, and 128 lanes using DXC. Tested with cargo test -p tombox-xshader --lib --test mesh on Windows.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:09:44 +00:00
github-bot closed this pull request 2026-11-26 06:09:44 +00:00
Author
Owner

@⁠omonkeyz on GitHub · 2026-11-22 12:50 UTC · original

Main's history was rewritten, which auto-closed this PR. It is applied in 0caa263 (merged in a0c9fd5) with your authorship kept, thanks!

**@⁠omonkeyz** on GitHub · 2026-11-22 12:50 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/81#issuecomment-7079392466) Main's history was rewritten, which auto-closed this PR. It is applied in 0caa263 (merged in a0c9fd5) with your authorship kept, thanks!

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.