shader: lower 8 ternary integer ALU instructions in pixel_aot (VOP3) #766
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!766
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/766/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?
@MrSkelee on GitHub · 2026-11-23 01:48 UTC · original
MrSkelee:feature/shader-vop3-ternary-int→main· +177 −3 · 5 files · 2 commits · merged 2026-11-23 03:11 UTCLowers 8 ternary 32-bit integer and bitwise vector ALU instructions in
tools/pixel_aot.py(VOP3):v_add3_u32:(src0 + src1 + src2)v_or3_b32:(src0 | src1 | src2)v_xor3_b32:(src0 ^ src1 ^ src2)v_and_or_b32:((src0 & src1) | src2)v_xad_u32:((src0 ^ src1) + src2)v_lshl_or_b32:((src0 << (src1 & 31)) | src2)v_lshl_add_u32:((src0 << (src1 & 31)) + src2)v_add_lshl_u32:((src0 + src1) << (src2 & 31))Highlights
_e32encodings, out-of-range registers (> v255), and float modifiers (abs,-,clamp).check_binary()for LLVM 15 assembly and disassembly validation.check_vop3_ternary_int_drawstesting 60 parameter cases across two groups with aliased destination/source registers, 1-bit mutation detection, and negative control verification.Verification