Pixel programs refused as "a hardware SGPR input" read user data past the guessed layout (10 shaders, incl. the Series X picture writer) #436
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#436
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?
@lautarocherro on GitHub · 2026-11-27 18:03 UTC · original
What happens
On main
b998bb65, 10 pixel shaders of my corpus are refused as "a hardware SGPR input". One of them is1dade93f8f5a7235, which @alexballvideos-netizen found is the only writer of the 2560x1440 picture on Series X (#258). 3 of the 10 were bound in a Series X world run here.All 10 come from guessed pipelines (0x1c8). The guess puts the primitive mask at
initialized_sgprs - 2and the POPS collision id atinitialized_sgprs - 1, right after the last root parameter of the metadata. These programs read those two SGPRs as data:1dade93f8f5a7235,04e492ab71dbb044,e7c8f59c2c4dd0b1) read s12, one past the guessed primitive mask (s11). Onlys_pack_ll_b32_b16ands_pack_hh_b32_b16consume it. A POPS id or a mask isn't packed by 16-bit halves.v_interp.So these programs probably have more user SGPRs than the metadata's root layout covers, and the primitive mask sits higher.
Plan
Collect register images (
VICTORY_DUMP_DESC_DIR) and look for the user SGPR count (SPI_SHADER_PGM_RSRC2_PS.USER_SGPR) or a user-data map, checked against the programs whose primitive maskv_interpanchors. If the image gives it, place the primitive mask from it, and feed the extra user SGPRs if the image says what they hold. Counts and ids only.@LakshanSivakumar, the code says the register image doesn't yet identify the user-data layout. If you're already on that, say so and I'll leave it.
@lautarocherro on GitHub · 2026-11-27 18:03 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-27 18:03 UTC · original
Claimed by @lautarocherro. Open a draft pull request with
Refs #432in its description within 24 hours, or the claim expires.github-bot referenced this issue2026-11-27 18:33:24 +00:00
@LakshanSivakumar on GitHub · 2026-11-28 00:36 UTC · original
Thank you for this. It is fixed on main by #455. 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.