startup: translate v_swap_b32 in gfx2hlsl #1796
No reviewers
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!1796
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1796/head"
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?
@tedin7 on GitHub · 2026-11-24 18:49 UTC · original
tedin7:x2w-frontier-gfx-slice→main· +222 −0 · 5 files · 2 commits · closed without mergingThe translator refused the VOP1
v_swap_b32 vdst, vsrcwithUnsupported: v_swap_b32. In the offline shader-archive census of #1723, 2 of the 1,171 pixel and vertex program pairs stop on it (one of the root-independent single-pair rows).What changes
op_v_swap_b32in tools/startup/gfx2hlsl.py emits{ uint swap_tmp = vA; vA = vB; vB = swap_tmp; }, guarded byif (exec & 1)when the exec mask is not known, nothing when both registers are the same, and it drops the proven-uniform status of both registers.v_swap_b32_e64on gfx1010 and gfx1030), so a scalar or constant source, a modifier or a wrong operand count is refused; the SDWA spelling stays refused by the decoder.Evidence
v_swap_b32 v1, v2(02 cb 02 7e). It covers the emitted exchange, the exec guard, the same-register case, a later read of the swapped register, the uniform status, five refusals, a modifier and the SDWA spelling.git diff --check origin/main...HEAD, docs_links_check and bidi_controls_check pass.Limits
git merge-treeagainst every open PR shows no conflict that is not already present between that PR and main. No open PR touchesv_swap_b32in gfx2hlsl.py (#1785 and #1669 only mention it in pixel_aot).Part of #870; related to #1723.
AI-assisted; commands listed were executed locally.
@tedin7 on GitHub · 2026-11-24 19:14 UTC · original
Closing this draft for now to help keep the open PR queue manageable; the branch stays preserved on the fork so it can be reopened once the queue clears.
Pull request closed