direct compute: SDWA forms of v_cvt_pkrtz_f16_f32 and v_add_co_ci_u32 #3185
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#3185
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.
v_cvt_pkrtz_f16_f32andv_add_co_ci_u32already have direct lowerings, but they are missing from the SDWA operand profiles. Their SDWA forms are refused with "unimplemented direct SDWA operand profile".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):v_cvt_pkrtz_f16_f32_sdwa ... dst_sel:WORD_0 dst_unused:UNUSED_PAD src0_sel:DWORD src1_sel:DWORD: 9 requests.v_add_co_ci_u32_sdwawith dst_sel WORD_1 or DWORD: 3 requests.Plan:
v_add_co_ci_u32takes the SDWA source selections. It writes its carry to VCC from the selected operands, as the VOP2 form does, and places the result per dst_sel/dst_unused.v_cvt_pkrtz_f16_f32takes full f32 sources (src_sel DWORD only; other selections stay refused) and places the packed result.Tests: a hardware readback of both ops in several destination placements, including the carry in VCC.
AI-assisted.