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

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

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


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 #3224'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, #3224.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6657816563 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3261). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T02:30:29Z. --- 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 #3224'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, #3224. 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#3261
No description provided.