Shaders: wrap lane selectors at the guest wave width #298
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-24T23:25:21Z.
RDNA 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.