direct compute: accept clamp on SDWA v_cvt_f32_f16 #3184
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#3184
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?
@Leyukaka on GitHub · 2026-11-27 20:39 UTC · original
Part of #2935 (instruction coverage). Target branch
main. I am taking it.Gap. Direct compute refuses the SDWA form
v_cvt_f32_f16_sdwa vD, vS clamp dst_sel:DWORD dst_unused:UNUSED_PAD src0_sel:WORD_1with "unsupported SDWA destination modifier". The SDWA decoder allows clamp only for ops in its float ALU or conversion lists, andv_cvt_f32_f16is in neither.Measured on a local capture of 2,689 compute requests (counts and instruction shape only), with
compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests, baselinemain6057071b, change ona5dad843(the commits in between do not touch the two native source files):Plan:
v_ldexpuses: a set sign bit or NaN gives +0, and values above 1.0 give 1.0.dx.opsaturate may keep -0 or flush a denormal depending on the float mode.Tests: a hardware readback from both halves for negative, above-one, NaN, -0.0, denormal and in-range inputs.
AI-assisted.