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

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

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

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.

**@⁠legacy-code-archaeologist** on GitHub · 2026-11-28 02:43 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3264) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 02:46:25 +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#3266
No description provided.