A spilled SGPR reloaded inside a whole-wave section is refused in pixel programs (8 shaders) #421
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#421
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?
@tiagonogueiraa-bit on GitHub · 2026-11-27 17:29 UTC · original
A small shape from #4: "a cross-lane operation outside compute: v_readlane_b32 of a constant lane in a pixel program" is refused in 8 pixel shaders of my corpus (26,849 shaders, Series S, main
b998bb6).In each one, the
v_readlane_b32reloads an SGPR the program spilled to a VGPR lane (v_writelane_b32 v127, s15, 1, thenv_readlane_b32 s54, v127, 1). The reload sits inside a whole-wave section (s_or_saveexec -1... restore), just before a reduction. Outside a section,Lower::spill_slotalready turns such a reload into the spilled SGPR. Inside one, the section's shape isShape::ReadLane, a real lane read, which a pixel program cannot make.Plan: for
Shape::ReadLane, take the spill slot when every path fills that lane withv_writelane_b32, as outside a section. Add a test and a by-output sweep.@tiagonogueiraa-bit on GitHub · 2026-11-27 17:29 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-27 17:29 UTC · original
Claimed by @tiagonogueiraa-bit. Open a draft pull request with
Refs #417in its description within 24 hours, or the claim expires.@LakshanSivakumar on GitHub · 2026-11-28 00:36 UTC · original
Thank you for this. It is fixed on main by #423. I have not checked every case from this report in the game myself, so please retest on main
a6a58361and reopen this if you still see it. Closing as fixed.