pixel_aot: lower v_swaprel_b32 with the movrel m0 indexing #1795
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#1795
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-24 18:47 UTC · original
Follow-up to #1739/#1785:
v_swaprel_b32is the last VOP1 relative-indexing form thatpixel_aotrefuses. It is in the gfx1013 and gfx1030 reference lists, VOP1 only, with no VOP3 form. LLVM 15 decodes7e18d118asv_swaprel_b32 v12, v24for both targets.Semantics (assumption, please correct):
VGPR[vdst + m0[25:16]]andVGPR[vsrc + m0[9:0]], the same split asv_movrelsd_2_b32.M0, untyped, no modifiers). I have not checked it against the ISA text locally, and I have no RDNA hardware to measure it on.Proposed slice: lower it with the
m0machinery of #1785.m0, or a dynamicm0with proven-bounded bit masks, which becomes bounded conditional selects on both sides.interp_basem0;Fixture plan: two banks with distinct values on the two
DPP_MOVREL_SETS, a static and a dynamic swap, an overlapping-bank swap and an equal-index swap. WARP and hardware draws.Controls that must mismatch:
m0halves;m0that is ignored.This builds on #1785. I'd open it as a PR on top of that branch, or after #1785 is merged.
@tedin7 on GitHub · 2026-11-25 01:42 UTC · original
Picking up
v_swaprel_b32lowering withmovrelm0indexing inpixel_aot, with Linux + Win2025 verification tests.@tedin7 on GitHub · 2026-11-25 01:43 UTC · original
Update:
v_swaprel_b32withmovrelm0indexing appears already onmainvia #1844 (7a75c9ab) and #1875, so skipping — this issue can likely be closed.@R0Y00 on GitHub · 2026-11-25 01:47 UTC · original
The bounded static and dynamic swap landed in #1844, including overlapping and equal-register cases and GPU negative controls. #1875 added exact emitted-code checks for both sides of the exchange and the m0 halves. I reran the current pixel translator controls successfully. This closes the implementation slice. The exact indexing on native RDNA hardware remains unmeasured, as documented in #1844.