Shaders: wrap lane selectors at the guest wave width #298
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/fxceless--victory-fork!298
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-298"
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?
@avt0m4t48 on GitHub · 2026-11-24 23:25 UTC · original
avt0m4t48:fix/shader-wrap-lane-selectors→main· +182 −11 · 5 files · 1 commits · openRDNA 2
v_readlane_b32andv_writelane_b32select a lane modulo the guest wave width. Normalize the guest selector before the native lane operations or the split-wave LDS exchange. In wave32, selectors 3 and 35 also identify the same spill slot and the same descriptor origin. AMD RDNA 2 ISA, section 12.12The related upstream proposal is VIctory #1312. This patch applies the width rule to this fork's split-wave execution and scalar spill lowering. The EXEC participation problem is tracked separately in #111.
Verification
2119b0eand pass here. They cover native and split-wave lowering, a wrapped spill overwriting the same slot, and a wrapped descriptor read finding the latest store.cargo test --locked -p victory-shader --libon Linux reported 173 passed, two ignored.cargo check --locked --target x86_64-pc-windows-msvc -p victory-shader --testspassed.Native GPU readback and application behavior were outside this run.
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.