pixel_aot: accept v_clrexcp and v_pipeflush (and their e64 spellings) as no-ops #1791
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#1791
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:43 UTC · original
v_clrexcpandv_pipeflushare the two operand-free VOP1 forms thatpixel_aotstill refuses. Their VOP3 encodings,v_clrexcp_e64andv_pipeflush_e64, are refused too. All four are in both the gfx1013 and gfx1030 reference lists, andform_coverage --gaps gfx1030lists them as unobserved. LLVM 15 decodes them identically for both targets:The VOP3 form prints without the suffix, as
v_nop_e64does.Proposed slice: accept the four spellings as no-ops in the entry mask, exactly like
v_nop/v_nop_e64(commit2dc5e13e).v_pipeflushflushes a VALU destination cache, so it has no architectural effect.v_clrexcpclears the wave's exception state. That state is only observable throughs_getreg_b32of the trap status, whichpixel_aotdoes not lower. So no translated shader can see the difference.Fixture plan:
draw-vop1-nopson WARP and hardware against the existing texture reference.check_binaryround trip.I'll take this as a small separate slice next to #1739/#1785.
@R0Y00 on GitHub · 2026-11-24 19:43 UTC · original
Completed in #1807. The entry-mask support covers both encodings, retains operand and mask refusals, and has binary and draw controls, including the live-register clobber case.