shader: lower v_dot2_f32_f16 in direct Compute and Pixel DXIL #3238

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

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


Direct Compute and Pixel DXIL translation (src/gfx1013_direct_compute.inl) does not yet lower v_dot2_f32_f16 (VOP3P 0x13).

v_dot2_i32_i16 and v_dot2_u32_u16 are already lowered, and v_dot2_f32_f16 is present in src/gfx1013_isa_tables.inl and tools/pixel_aot.py. Lowering v_dot2_f32_f16 in DirectCompute::float_alu() (supporting op_sel[1:0], op_sel_hi[1:0], neg_lo[2:0], neg_hi[1:0], clamp, binary16 inline constants on src0/src1, binary32 src2, and FP16 MODE tracking via half_binary) expands #2935 direct translation coverage.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6657051743 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3238). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T01:09:02Z. --- Direct Compute and Pixel DXIL translation (`src/gfx1013_direct_compute.inl`) does not yet lower `v_dot2_f32_f16` (VOP3P `0x13`). `v_dot2_i32_i16` and `v_dot2_u32_u16` are already lowered, and `v_dot2_f32_f16` is present in `src/gfx1013_isa_tables.inl` and `tools/pixel_aot.py`. Lowering `v_dot2_f32_f16` in `DirectCompute::float_alu()` (supporting `op_sel[1:0]`, `op_sel_hi[1:0]`, `neg_lo[2:0]`, `neg_hi[1:0]`, `clamp`, binary16 inline constants on `src0`/`src1`, binary32 `src2`, and FP16 `MODE` tracking via `half_binary`) expands #2935 direct translation coverage. 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#3238
No description provided.