Shaders: v_fmac/v_mac's VOP3 accumulator takes its abs and neg bits #213
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!213
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-213"
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?
@xndbogdan on GitHub · 2026-11-30 21:50 UTC · original
xndbogdan:shaders/fmac-accumulator-modifiers→main· +72 −3 · 2 files · 47 commits · closed without mergingIn the VOP3 form of
v_fmac_f32,v_mac_f32,v_mac_legacy_f32andv_fmac_f16, the accumulator is source 2, and the instruction's abs and neg bits for source 2 apply to it. The translator dropped them, so wherever a program sets them the accumulator's sign is wrong:a * b + |c|ora * b - ccame out asa * b + c.FAbsand-0.0 - x, as the other sources do infsrc/half_fsrc. Ported from trustno1-coder/VIctory-NVIDIA#2387, which credits SmokinDoinkV1 (GPL-3.0).v_fmac_f16, done on the accumulator's 16 bits before it is widened (clear or flip bit 15). This part isn't in #2387; that fork still has the gap.Programs that don't set these bits translate exactly as before.
Tests
On an RTX 5080 (driver 621.24) and WARP, Windows 11 build 26300:
vop3_accumulators_take_their_abs_and_neg_bitsruns each of the four instructions with none, abs, neg and both on the accumulator (2 * 3 + acc,acc = -1) and checks for 5, 7, 7 and 5. Onmainit fails at the first case (v_fmac_f32 abs: 5, want 7).cargo test -p victory-shaderandcargo clippy: running; I will add the results here.Not done
AI-assisted (Claude Code).
🤖 Generated with Claude Code
@readmet3xt-lab on GitHub · 2026-12-01 01:36 UTC · original
A note on why this shows as closed: GitHub closed every open pull request by itself when main's history was rewritten on 2026-12-01 (text-only changes; every commit hash changed), and they cannot be reopened. This is not a rejection.
Your change is in the batch being tested for the next release, carried over as one commit with you as its author. Nothing is needed from you now; the result will be posted here.
Pull request closed