shader: support VOP3P clamp on v_pk_add_f16, v_pk_mul_f16, and v_pk_fma_f16 #3289

Closed
opened 2026-11-28 05:27:40 +00:00 by github-bot · 0 comments
Owner

@⁠legacy-code-archaeologist on GitHub · 2026-11-28 05:21 UTC · original

Refs #2935.

Admit VOP3P CLAMP on v_pk_add_f16 (0x0f), v_pk_mul_f16 (0x10), and v_pk_fma_f16 (0x0e) in DirectCompute::packed_f16_alu() (src/gfx1013_direct_compute.inl), saturating each rounded binary16 result half to [+0.0, 1.0] with -0.0 -> +0.0 and NaN -> +0.0, while keeping VOP2 v_pk_fmac_f16 (0x3c) clamp and unused third-operand modifier bits refused.

AI-assisted.

**@⁠legacy-code-archaeologist** on GitHub · 2026-11-28 05:21 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3287) Refs #2935. Admit VOP3P `CLAMP` on `v_pk_add_f16` (`0x0f`), `v_pk_mul_f16` (`0x10`), and `v_pk_fma_f16` (`0x0e`) in `DirectCompute::packed_f16_alu()` (`src/gfx1013_direct_compute.inl`), saturating each rounded binary16 result half to `[+0.0, 1.0]` with `-0.0 -> +0.0` and `NaN -> +0.0`, while keeping VOP2 `v_pk_fmac_f16` (`0x3c`) clamp and unused third-operand modifier bits refused. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 05:27:40 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3289
No description provided.