shader: join wave64 lane masks with data by each lane's bit #120
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!120
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-120"
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?
@Olima34 on GitHub · 2026-11-26 17:30 UTC · original
Olima34:fix/shader-wave64-mask-data-join→main· +117 −5 · 4 files · 1 commits · merged 2026-11-26 18:09 UTCOne of the #4 shapes, "a lane-mask join of an untracked mask" (14 refusals in your latest run). This is a lowering for wave64 programs. What it still refuses now names its cause.
Why. At a uniform join with console lanes, a lane mask joined with data (
Val::I32) became each lane's bit of the number, asAtom::Opaquealready does. That only worked in wave32 programs (numberrequired!wave64), so wave64 ones were refused.What.
pair_highgives the phi of the next SGPR in the same block, so the edge index matches.Tests.
mask_tests::a_wave64_mask_joined_with_data_at_a_uniform_loop_is_its_number(a wave64 uniform loop, lowered withwave32_hostfalse and true). On main it fails with exactly "a lane-mask join of an untracked mask" at 0x20.addr_tests::a_wave64_mask_joined_with_data_takes_each_lanes_bit_on_the_gpu(victory-gpu, runs on Metal with the host's options: one console wave as two host waves). The mask starts as lanes below 40, then each back edge shifts it right by 4 and passes it through VGPRs as data. Every lane stores its bit of the last pass's number, and the test checks all 64 lanes: 1 below lane 36, 0 above. Lanes 32 to 35 take their bit from the high dword. It fails on main (the shader is refused).The #110 Series S log has this refusal in three compute programs (2e4e36ee0ffdebee @0xcf8, 7a06a5d322dce725 @0x2270, c5f6d57e0092dc99 @0x8b0). Whether they take the wave64 form is not known; if not, the new messages will say which form they do take.
victory-shader (242) and victory-gpu (arm64) tests, Windows clippy and
cargo xtask policypass.31d26e5139to2cfc7be5e92cfc7be5e9to81f038fcb3@LakshanSivakumar on GitHub · 2026-11-26 18:09 UTC · original
Merged, thanks. Wave64 mask/data joins now take each lane's bit, and the GPU test passes.