Respect single-wave LDS store ordering and PSV compute dimensions #96

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

@⁠bambermf on GitHub · 2026-11-22 02:56 UTC · original
shader/wave-lds-order → main · +77 −13 · 12 files · 96 commits · closed without merging

Port single-wave compute store ordering from drycheetah84/TomBox 9a39de8. The existing translator already separates the write, atomic add, and read in the Fortnite bloom shader. This change covers consecutive writes on host GPUs that split a console wave. It also reads PSV compute dimensions when present and uses them for HLSL group declarations and lane exchanges.

Tests exercise single- versus multi-wave groups, compile the resulting HLSL, and check malformed PSV sizes.

**@⁠bambermf** on GitHub · 2026-11-22 02:56 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/96) `shader/wave-lds-order` → `main` · +77 −13 · 12 files · 96 commits · closed without merging Port single-wave compute store ordering from drycheetah84/TomBox 9a39de8. The existing translator already separates the write, atomic add, and read in the Fortnite bloom shader. This change covers consecutive writes on host GPUs that split a console wave. It also reads PSV compute dimensions when present and uses them for HLSL group declarations and lane exchanges. Tests exercise single- versus multi-wave groups, compile the resulting HLSL, and check malformed PSV sizes.
Adapted from drycheetah84/TomBox 9a39de8 and 56aed01.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:10:18 +00:00
github-bot closed this pull request 2026-11-26 06:10:18 +00:00
Author
Owner

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

Main's history was rewritten, which auto-closed this PR (sorry for the noise). Please rebase on the current main and resubmit. This is the version of the LDS store order + PSV compute dims change with the correct +36 offset, so it is the one to keep (#117 duplicates it). To resubmit: git fetch this repo, branch from the current main, cherry-pick only your own commits (the old branch is based on the previous history and cannot be merged), and open a new PR.

**@⁠omonkeyz** on GitHub · 2026-11-22 13:12 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/96#issuecomment-7079645754) Main's history was rewritten, which auto-closed this PR (sorry for the noise). Please rebase on the current main and resubmit. This is the version of the LDS store order + PSV compute dims change with the correct +36 offset, so it is the one to keep (#117 duplicates it). To resubmit: `git fetch` this repo, branch from the current `main`, cherry-pick only your own commits (the old branch is based on the previous history and cannot be merged), and open a new PR.

Pull request closed

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