shader: lower v_cvt_pknorm_i16_f32 and v_cvt_pknorm_u16_f32 in direct DXIL #3296
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#3296
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?
@legacy-code-archaeologist on GitHub · 2026-11-28 05:46 UTC · original
Refs #2935.
Lower VOP3
v_cvt_pknorm_i16_f32(0x368) andv_cvt_pknorm_u16_f32(0x369) inDirectCompute::float_alu()(src/gfx1013_direct_compute.inl) for both direct Compute and Pixel DXIL:cvt_norm(S0.f32)intoD[15:0]andcvt_norm(S1.f32)intoD[31:16](round_rne(clamp(x, -1, 1) * 32767)andround_rne(clamp(x, 0, 1) * 65535)).m * (2^k - 1)split at bitk), avoiding desktop float rounding/ftz differences andi64dependency.0,|x| >= 1.0(±Infincluded) saturation,< 2^-17underflow to0, VOP3abs[1:0]/neg[1:0], and VGPR/SGPR/literal/inline sources, while keepingclamp,omod,op_sel, third-operandabs/neg, nonzerosrc2, and DPP/SDWA encodings refused.AI-assisted.
github-bot referenced this issue2026-11-28 06:08:37 +00:00