Clamped v_sub_nc_u32 (unsigned saturation) is refused as integer output modifiers (8 compute shaders) #368
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#368
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 14:16 UTC · original
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.@tiagonogueiraa-bit on GitHub · 2026-11-27 14:16 UTC · original
/claim
@github-actions[bot] on GitHub · 2026-11-27 14:16 UTC · original
Claimed by @tiagonogueiraa-bit. Open a draft pull request with
Refs #365in its description within 24 hours, or the claim expires.@LakshanSivakumar on GitHub · 2026-11-28 00:35 UTC · original
Thank you. Clamped v_add_nc_u32, v_sub_nc_u32 and v_subrev_nc_u32 now saturate, in #369 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.