shader: lower binary16 VOP1 reciprocal and square root #3558
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!3558
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3556"
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 05:15 UTC · original
lambirou:shader/f16-vop1→main· +915 −63 · 13 files · 9 commits · merged 2026-11-30 09:00 UTCPart of the VOP1 f16 slice. Stacked on #3551; rebase after it lands.
This adds the plain binary16 VOP1 forms of
v_rcp_f16andv_sqrt_f16, in e32 and e64 spellings (four reference rows):1.0f / xorsqrt(x)in binary32, then narrow with the existing integer nearest-even conversion.f16_rcp_sqrt_result: binary32 rounding is applied before binary16 narrowing, so the result is not double-rounded;rcp(±0)gives ±infinity,sqrt(-0)keeps -0, and a negative square root has no modelled NaN payload.half_denorm=preserve, destination 0..255, no outstanding sample. Modifiers, clamp, op_sel, DPP and SDWA stay refused.Tests
pixel_aot_f16_rcp_sqrt_hardwarepassed on the AMD RX 9060 XT (driver 32.0.32029.2010), 6.76 s.pixel_aot_f16_rcp_sqrt_warppassed on WARP, 5.46 s.pixel_mismatch; an unproven source is refused.tests/form_coverage_check.pypasses, including the newcheck_f16_rcp_sqrt_forms; the scanner/translator agreement tests pass.v_rcp_f16_e32/e64andv_sqrt_f16_e32/e64.Expected full table after both this and #3551: 1,546/1,968 gfx1013 and 1,537/1,863 gfx1030.
Limits
No console measurement. The high half of the destination is not observed. The NaN payload of a negative
sqrtand special values beyondrcpinfinities are not modelled. DPP, SDWA,v_rsq_f16and the five other VOP1 f16 ops remain out of scope.The branch is based on #3551, itself based on red
main44a3ad5a; #3544 fixes the pre-existingstartup_triage_runfailure that can turn the Linux check red.AI-assisted.
github-bot referenced this pull request2026-11-30 16:31:21 +00:00