[bug] A loop-carried lane mask read after a divergent loop is the lane's last pass, not the wave's #257
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#257
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@LakshanSivakumar on GitHub · 2026-11-27 05:31 UTC · original
What is wrong
When lanes leave a divergent loop on different passes, a lane that reads a loop-carried lane mask after the loop gets the value from its own last pass. On the console the mask is a wave-wide scalar, so the lane should read what the wave's last pass left.
Shown with a synthetic program on Metal: lane 0 reads 0 where the console gives 1. Main translates the shape without refusal.
What is known
fill_phis(mask_differs_on_edge,no_mask_lane_on_edge) and of the rules now onfix/loop-and-arm-masks.Help wanted
The area is
crates/victory-shader/src/emit/lower.rsaroundfill_phis. A note on the shape is indocs/native-host.md.github-bot referenced this issue2026-11-27 07:36:20 +00:00
@gagarinyury on GitHub · 2026-11-27 10:30 UTC · original
/claim
@gagarinyury on GitHub · 2026-11-27 10:31 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-27 10:31 UTC · original
Claimed by @gagarinyury. Open a draft pull request with
Refs #257in its description within 24 hours, or the claim expires.