Shaders: reuse the wave32 group barrier across consecutive LDS reads (port of gomeaw bb61bb7) #628
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!628
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-628"
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?
@jptorres96 on GitHub · 2026-11-27 14:59 UTC · original
jptorres96:port-lds-barrier-reuse→a-publier· +120 −9 · 4 files · 1 commits · openPort of gomeaw/VIctory-7900XTX
bb61bb7(via301e10e): reuse the wave32 group barrier across consecutive LDS reads (avatarmanz/VIctory-7900XTX#143, #152). Authorship kept (cherry-pick-x). The only conflict wasTRANSLATOR_VERSION, bumped here from 2 to 3 so cached translations are redone.On a synthetic fixture the wave32 lowering goes from 7 group barriers to 4. Barriers that order reads against a later write or atomic are kept. Wave64 keeps its one explicit barrier.
Verified on RTX 4080 SUPER (driver 621.01), DXIL validator from DXC 1.9.2609.5:
wave32_lds_read_runs_share_a_barrier: 4 barriers, validator accepts, all 64 lanes read the right old and new LDS values on the cardcargo test -p victory-shader --lib --test-threads=1: 304 passed, 0 failed, 4 ignored, no hardware case skippedcargo clippy --workspace --all-targets -- -D warnings: cleanNot measured in-game (no game dump here). An in-game GPU ms/frame A/B on any card would be welcome.
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.