Clamped v_sub_nc_u32 (unsigned saturation) is refused as integer output modifiers (8 compute shaders) #365
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by tiagonogueiraa-bit on 2026-11-27T14:16:02Z.
A small shape from #4: "integer output modifiers" is refused in 8 unique compute shaders of a 12,020-shader corpus (Series S, boot to the menus, main
905e7aa). All 8 arev_sub_nc_u32 vN, vA, vB clamp, with the result written to LDS.The VOP3 clamp bit on an unsigned add or sub saturates: LLVM's AMDGPU backend selects
usubsatanduaddsattov_sub_nc_u32andv_add_nc_u32with clamp.Plan:
v_add_nc_u32,v_sub_nc_u32andv_subrev_nc_u32as unsigned saturation.omod, refused.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by tiagonogueiraa-bit on 2026-11-27T14:16:03Z.
/claim
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by github-actions[bot] on 2026-11-27T14:16:13Z.
Claimed by @tiagonogueiraa-bit. Open a draft pull request with
Refs #365in its description within 24 hours, or the claim expires.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-28T00:35:31Z.
Thank you. Clamped v_add_nc_u32, v_sub_nc_u32 and v_subrev_nc_u32 now saturate, in #366 on main. Your sweep showed 8 compute shaders gained, no regressions. Clamp on other integer operations and omod stay refused on purpose. I have not seen it in the game. Closing; reopen if one of the 8 is still refused on
a6a58361.