shader: support neg_lo, neg_hi, and clamp on v_pk_min_f16 and v_pk_max_f16 #3263

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

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

Support VOP3P neg_lo, neg_hi, and clamp modifiers on v_pk_min_f16 and v_pk_max_f16 in DirectCompute::packed_minmax(), addressing unsupported packed 16-bit min/max encoding (17,577 untranslated dispatches in #3226's refreshed census).

Scope:

  • Admit NEG_LO[1:0], NEG_HI[1:0], and CLAMP on v_pk_min_f16 and v_pk_max_f16 (inverting operand sign bits before NaN/zero/min/max comparison and clamping output to [+0.0, 1.0] with NaN -> +0.0).
  • Keep reserved third-operand/modifier bits (NEG_LO[2], NEG_HI[2], OP_SEL[2], nonzero src2) and integer v_pk_min/max_{i16,u16} clamp/negation refused.

Refs #2935, #3226.

AI-assisted.

**@⁠legacy-code-archaeologist** on GitHub · 2026-11-28 02:30 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3261) Support VOP3P `neg_lo`, `neg_hi`, and `clamp` modifiers on `v_pk_min_f16` and `v_pk_max_f16` in `DirectCompute::packed_minmax()`, addressing `unsupported packed 16-bit min/max encoding` (17,577 untranslated dispatches in #3226's refreshed census). Scope: - Admit `NEG_LO[1:0]`, `NEG_HI[1:0]`, and `CLAMP` on `v_pk_min_f16` and `v_pk_max_f16` (inverting operand sign bits before NaN/zero/min/max comparison and clamping output to `[+0.0, 1.0]` with NaN -> `+0.0`). - Keep reserved third-operand/modifier bits (`NEG_LO[2]`, `NEG_HI[2]`, `OP_SEL[2]`, nonzero `src2`) and integer `v_pk_min/max_{i16,u16}` clamp/negation refused. Refs #2935, #3226. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 02:34:14 +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#3263
No description provided.