shader: join wave64 lane masks with data by each lane's bit #120
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-26T17:30:42Z.
One 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.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T18:09:52Z.
Merged, thanks. Wave64 mask/data joins now take each lane's bit, and the GPU test passes.