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

Closed
opened 2026-11-28 02:51:02 +00:00 by legacy-code-archaeologist · 0 comments
legacy-code-archaeologist commented 2026-11-28 02:51:02 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T02:51:02Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6658067619 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3267). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T02:51:02Z. --- 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.
Sign in to join this conversation.
No labels
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.

Reference
R0Y00/Xbox2Windows#3267
No description provided.