shader: lower v_min3_f16, v_max3_f16, and v_med3_f16 in direct Compute and Pixel DXIL #3264

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

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


Lower VOP3 v_min3_f16 (0x351), v_max3_f16 (0x354), and v_med3_f16 (0x357) in the direct Compute and Pixel DXIL paths.

Scope:

  • Support VOP3 encoding (Encoding::Vop3) with abs[2:0], neg[2:0], clamp, op_sel[3:0] (source half selectors + destination high/low half placement preserving the other 16 bits of vdst), VGPR/SGPR/literal/inline sources, exact binary16 NaN/signed-zero/subnormal ordering, and binary16 denormal mode tracking ((mode_bits & 0xc0u) == 0xc0u).
  • Refuse omod, high-half op_sel on non-VGPR sources, special scalar sources, and non-default or unknown binary16 denormal mode.

Refs #2935.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6657980124 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3264). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T02:43:43Z. --- Lower VOP3 `v_min3_f16` (`0x351`), `v_max3_f16` (`0x354`), and `v_med3_f16` (`0x357`) in the direct Compute and Pixel DXIL paths. Scope: - Support VOP3 encoding (`Encoding::Vop3`) with `abs[2:0]`, `neg[2:0]`, `clamp`, `op_sel[3:0]` (source half selectors + destination high/low half placement preserving the other 16 bits of `vdst`), VGPR/SGPR/literal/inline sources, exact binary16 NaN/signed-zero/subnormal ordering, and binary16 denormal mode tracking (`(mode_bits & 0xc0u) == 0xc0u`). - Refuse `omod`, high-half `op_sel` on non-VGPR sources, special scalar sources, and non-default or unknown binary16 denormal mode. 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#3264
No description provided.