shader: lower v_pk_mul_lo_u16, v_pk_mad_u16 and v_pk_mad_i16 in the direct compute path #3090
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#3090
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@R0D4X on GitHub · 2026-11-27 14:52 UTC · original
Refs #2935.
The ISA table (
src/gfx1013_isa_tables.inl) already decodes VOP3Pv_pk_mul_lo_u16(0x01),v_pk_mad_u16(0x09), andv_pk_mad_i16(0x00), and the startup HLSL translator already lowers them, but the direct C++ compute frontend (src/gfx1013_direct_compute.inl) does not lower them yet.I am taking this slice.
Planned scope
v_pk_mul_lo_u16,v_pk_mad_u16, andv_pk_mad_i16insrc/gfx1013_direct_compute.inlwith fullop_sel/op_sel_hilane selection (op_sel[1:0]/op_sel_hi[1:0]for 2-sourcemul_lo,op_sel[2:0]/op_sel_hi[2:0]for 3-sourcemad), wrapping modulo 2^16 when unclamped, and per-lane saturation ([0, 65535]formad_u16,[-32768, 32767]formad_i16) whenclampis set.clamponv_pk_mul_lo_u16, refuseneg_lo/neg_hion all three, and refuseop_sel[2]/ nonzerosrc2on 2-sourcev_pk_mul_lo_u16.tests/native_pk_mul_mad_16_check.py,tests/cmake/native_pk_mul_mad_16.cmake, anddocs/experiments/native-pk-mul-mad-16.mdcovering DXIL compile controls, modifier refusals,EXECmasking, 3-sourceop_sel/op_sel_hiswizzles, no-clamp negative controls, andnative_store_replayhardware readback.