shader: lower v_fract_f16 in direct Compute and Pixel DXIL #3269

Closed
opened 2026-11-28 02:52:46 +00:00 by github-bot · 0 comments
Owner

@⁠legacy-code-archaeologist on GitHub · 2026-11-28 02:51 UTC · original

Lower VOP1 (0x5f) and VOP3 (0x1df) v_fract_f16 in direct Compute and Pixel DXIL.

Scope:

  • Support VOP1 and VOP3 encodings with abs, neg, clamp, op_sel[0]/op_sel[3], VGPR/SGPR/literal/inline sources, exact binary16 min(x - floor(x), 0x3bff) clamping tiny negative fractions that round to 1.0 to 0x3bff, non-finite ±Inf/NaN -> 0x7e00 (+0.0 under clamp), destination other-half preservation, and 0x8000ccu binary16 mode tracking.
  • Refuse DPP, SDWA, omod, unused VOP3 operand/op_sel bits, high-half op_sel on non-VGPR source, special scalar sources, and non-default or unknown binary16 rounding/denormal modes.

Refs #2935.

AI-assisted.

**@⁠legacy-code-archaeologist** on GitHub · 2026-11-28 02:51 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3267) Lower VOP1 (`0x5f`) and VOP3 (`0x1df`) `v_fract_f16` in direct Compute and Pixel DXIL. Scope: - Support VOP1 and VOP3 encodings with `abs`, `neg`, `clamp`, `op_sel[0]`/`op_sel[3]`, VGPR/SGPR/literal/inline sources, exact binary16 `min(x - floor(x), 0x3bff)` clamping tiny negative fractions that round to `1.0` to `0x3bff`, non-finite `±Inf`/`NaN` -> `0x7e00` (`+0.0` under `clamp`), destination other-half preservation, and `0x8000ccu` binary16 mode tracking. - Refuse DPP, SDWA, `omod`, unused VOP3 operand/op_sel bits, high-half `op_sel` on non-VGPR source, special scalar sources, and non-default or unknown binary16 rounding/denormal modes. Refs #2935. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 02:52:46 +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#3269
No description provided.