v_cvt_pk_u16_u32 (and v_cvt_pk_i16_i32) are refused (9 pixel shaders) #405

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

@⁠tiagonogueiraa-bit on GitHub · 2026-11-27 16:51 UTC · original

A small shape from #4: v_cvt_pk_u16_u32 is refused by name in 9 unique pixel shaders of my corpus (26,849 shaders, Series S, boot to the story load).

It packs two 32-bit integers into two 16-bit halves, src0 low and src1 high, saturating each one (RDNA2 ISA, VOP3 0x36a). Mesa's ACO selects NIR's clamping pack_uint_2x16 to it, and pack_sint_2x16 to v_cvt_pk_i16_i32 (0x36b).

Plan:

  • Lower both with saturation.
  • Add a GPU value test.
  • Include a by-output sweep in the PR.
**@⁠tiagonogueiraa-bit** on GitHub · 2026-11-27 16:51 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/401) A small shape from #4: `v_cvt_pk_u16_u32` is refused by name in 9 unique pixel shaders of my corpus (26,849 shaders, Series S, boot to the story load). It packs two 32-bit integers into two 16-bit halves, src0 low and src1 high, saturating each one (RDNA2 ISA, VOP3 0x36a). Mesa's ACO selects NIR's clamping `pack_uint_2x16` to it, and `pack_sint_2x16` to `v_cvt_pk_i16_i32` (0x36b). Plan: - Lower both with saturation. - Add a GPU value test. - Include a by-output sweep in the PR.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 16:55:24 +00:00
Author
Owner

@⁠tiagonogueiraa-bit on GitHub · 2026-11-27 16:51 UTC · original

/claim

**@⁠tiagonogueiraa-bit** on GitHub · 2026-11-27 16:51 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/401#issuecomment-7223750545) /claim
Author
Owner

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

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

**@⁠github-actions[bot]** on GitHub · 2026-11-27 16:51 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/401#issuecomment-7223754141) Claimed by @⁠tiagonogueiraa-bit. Open a draft pull request with `Refs #401` in its description within 24 hours, or the claim expires.
github-bot referenced this issue from a commit 2026-11-28 00:42:29 +00:00
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-28 00:35 UTC · original

Thank you for this. It is fixed on main by #406. 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:35 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/401#issuecomment-7231040275) Thank you for this. It is fixed on main by #406. 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.