shader: lower binary16 VOP3 three-way minimum, maximum and median #3566
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!3566
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3564"
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?
@lambirou on GitHub · 2026-11-30 08:14 UTC · original
lambirou:shader/f16-minmax3→main· +2054 −32 · 7 files · 5 commits · merged 2026-11-30 09:56 UTCPart of the VOP3 f16 slice. Stacked on #3564; rebase after it lands.
This adds
v_min3_f16,v_max3_f16andv_med3_f16(three VOP3 rows). The result is one of the three inputs, selected by the same sign-magnitude order as the direct compute path; the median ismax(min(a,b), min(max(a,b),c)). Clamp: a negative result becomes 0 and a result above 15360 becomes 15360. Sources must be statically finite;op_selhigh halves,neg/abs, omod, subword, DPP and permuted encodings stay refused.Tests
pixel_aot_f16_minmax3_hardwareandpixel_aot_f16_minmax3_warppass; the wholepixel_aot_f16_group passes 22/22.pixel_mismatch: min/max swapped, sign order inverted, key order inverted, clamp dropped, high-half source read, med3 replaced by min3, med3 replaced by max3.form_coverage_check.pypasses and records exactly the three new forms; expected full table after the stack: 1,559/1,968 gfx1013 and 1,550/1,863 gfx1030.Limits
The high half of the destination is not observed. High-half
op_selandneg/absare refused although the direct compute path admits them. Runtime sources and NaN/infinity sources remain out of scope.The branch includes #3544/#3549/#3556/#3557/#3562; those commits drop out once the stack lands.
AI-assisted.
shader: lower binary16 VOP3 three-way minimum and maximumto shader: lower binary16 VOP3 three-way minimum, maximum and mediana03deb4b9atodaa40d9cdc