Pixel programs refused as "a hardware SGPR input" read user data past the guessed layout (10 shaders, incl. the Series X picture writer) #436

Closed
opened 2026-11-27 18:03:55 +00:00 by github-bot · 3 comments
Owner

@⁠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 is 1dade93f8f5a7235, 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 - 2 and the POPS collision id at initialized_sgprs - 1, right after the last root parameter of the metadata. These programs read those two SGPRs as data:

  • 3 (1dade93f8f5a7235, 04e492ab71dbb044, e7c8f59c2c4dd0b1) read s12, one past the guessed primitive mask (s11). Only s_pack_ll_b32_b16 and s_pack_hh_b32_b16 consume it. A POPS id or a mask isn't packed by 16-bit halves.
  • 7 read s17, the guessed primitive mask slot. They copy it into a loop phi and never move it to M0 for 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 mask v_interp anchors. 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](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/432) ## What happens On main `b998bb65`, 10 pixel shaders of my corpus are refused as "a hardware SGPR input". One of them is `1dade93f8f5a7235`, 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 - 2` and the POPS collision id at `initialized_sgprs - 1`, right after the last root parameter of the metadata. These programs read those two SGPRs as data: - 3 (`1dade93f8f5a7235`, `04e492ab71dbb044`, `e7c8f59c2c4dd0b1`) read s12, one past the guessed primitive mask (s11). Only `s_pack_ll_b32_b16` and `s_pack_hh_b32_b16` consume it. A POPS id or a mask isn't packed by 16-bit halves. - 7 read s17, the guessed primitive mask slot. They copy it into a loop phi and never move it to M0 for `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 mask `v_interp` anchors. 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 18:03:55 +00:00
Author
Owner

@⁠lautarocherro on GitHub · 2026-11-27 18:03 UTC · original

/claim

**@⁠lautarocherro** on GitHub · 2026-11-27 18:03 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/432#issuecomment-7225071632) /claim
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-27 18:03 UTC · original

Claimed by @⁠lautarocherro. Open a draft pull request with Refs #432 in its description within 24 hours, or the claim expires.

**@⁠github-actions[bot]** on GitHub · 2026-11-27 18:03 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/432#issuecomment-7225075351) Claimed by @⁠lautarocherro. Open a draft pull request with `Refs #432` in its description within 24 hours, or the claim expires.
Author
Owner

@⁠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 a6a58361 and reopen this if you still see it. Closing as fixed.

**@⁠LakshanSivakumar** on GitHub · 2026-11-28 00:36 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/432#issuecomment-7231041681) 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 a6a58361 and reopen this if you still see it. Closing as fixed.
This discussion has been locked. Commenting is limited to contributors.
No description provided.