pixel_aot: lower the plain VOP1/VOP3 v_movrel* forms with the existing m0 indexing #1739
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#1739
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:00 UTC · original
tools/pixel_aot.pylowers the quad-local DPP16/DPP8 forms of the four relative VGPR-indexing moves (commit5654af9e,DPP_MOVREL_BODY,pixel_aot_dpp_movrel_{warp,hardware}). It does this with staticm0and with dynamicm0whose bits are proven bounded. The plain encodings of the same four moves are still refused:v_movreld_b32,v_movrels_b32,v_movrelsd_b32,v_movrelsd_2_b32;v_movreld_b32_e64,v_movrels_b32_e64,v_movrelsd_b32_e64,v_movrelsd_2_b32_e64.form_coverage --gaps gfx1030lists all eight as unobserved (VOP1 46/81 on the dashboard), and they are in the gfx1013 reference list as well.Proposed slice: lower these eight forms with the existing movrel indexing, without the quad swizzle.
m0rules as the DPP forms: a static immediate, or a dynamic value with a proven bit mask that lowers to a bounded conditional select.v_movrelsd_2_b32takes the source offset fromm0[9:0]and the destination offset fromm0[25:16].interp_basem0;clamp/omod/modifiers. A move has none in LLVM's VOP3 spelling, and anything else is refused.v_swaprel_b32(a two-register exchange), the SDWA forms and the scalars_movrel*.Fixture plan, extending
tests/pixel_aot_check.pynext todraw-dpp-movrel, with LLVM 15check_binaryround trips:m0and with dynamic boundedm0over two constant sets.m0, so the offset is dropped, and one that swaps them0[9:0]/m0[25:16]halves forv_movrelsd_2.m0, an offset reaching v256, and an undefined indexed source._warpand_hardwaretests. Locally the WARP draw is available, and the existingpixel_aot_dpp_movrel_warppasses here: 4096 pixels, max error 0.Environment: Windows 11 26100, LLVM 15.0.7, DXC 10.0.26100, WARP 10.0.26100.8972; hardware Intel HD 530 / Quadro M1000M.
Is this scope OK? Should
v_swaprel_b32join it or stay a separate slice?@tedin7 on GitHub · 2026-11-25 01:42 UTC · original
Picking up plain VOP1/VOP3
v_movrel*lowering with existingm0indexing inpixel_aot, with Linux + Win2025 verification tests.@tedin7 on GitHub · 2026-11-25 01:43 UTC · original
Update: plain VOP1/VOP3
v_movrel*appears already onmainviacf547ed4(tests/pixel_aot_check.py,docs/experiments.md), so skipping — this issue can likely be closed.@winne42 on GitHub · 2026-11-25 06:40 UTC · original
This looks complete on
mainand can be closed.PR #1785 (
cf547ed4) lowers all eight forms (v_movreld/movrels/movrelsd/movrelsd_2_b32,_e32and_e64). It covers each item in the fixture plan above:PLAIN_MOVREL_BODYis drawn twice, as written and with_e32/_e64exchanged, so every form runs with static and with bounded dynamicm0. BothDPP_MOVREL_SETSare used. Registered aspixel_aot_plain_movrel_{warp,hardware}inCMakeLists.txt.m0replaced by 0 forv_movrels,v_movreldandv_movrelsd, and swappedm0[9:0]/m0[25:16]halves forv_movrelsd_2.interp_basem0, unbounded dynamicm0, a static offset past v255, an indexed VGPR past v255, an undefined indexed source, and the entry-mask refusal.docs/experiments.mdrecords WARP 10.0.26100.8972 and a Quadro M1000M on Windows 11 26100. Thecheck_binaryround trip was not run locally by the author.v_swaprel_b32, the open question at the end, followed separately in #1844 (5a6ad936).Independent device-free check on Linux, Python 3,
mainat1949b265. I ran the plain-movrel block ofcheck_binaryon its own, from thePlain VOP1/VOP3 v_movrel* (#1739)comment up to thes_movrel*block. It needs onlytranslate(), notllvm-mc. I also translated each of the eight forms with a staticm0:Negative control at
cf547ed4^:Not run here: the WARP and hardware draws (no Windows or D3D12 on this host) and the LLVM 15
check_binaryround trip (this host has LLVM 21/22 only).AI-assisted (Claude Code).