shader: lower unfused f32 multiply-adds in the direct compute path #3122

Open
github-bot wants to merge 1 commit from github-bot/gh-3007 into main AGit
Owner

v_mad_f32, v_mad_legacy_f32, v_mac_f32 and v_mac_legacy_f32 follow
gfx2hlsl.py's mad32: denormal inputs flushed to signed zero, a separately
rounded product (the legacy forms make 0 * anything +0), a flushed addend
and a flushed sum. Plain fmul and fadd without fast-math flags, so DXIL
does not contract them into FMad. A v_mac VOP3 form with abs or neg on the
accumulator is refused.

Refs #3005

Co-Authored-By: Claude Opus 5.5 [email protected]

Conflicts:

src/gfx1013_direct_compute.inl

v_mad_f32, v_mad_legacy_f32, v_mac_f32 and v_mac_legacy_f32 follow gfx2hlsl.py's mad32: denormal inputs flushed to signed zero, a separately rounded product (the legacy forms make 0 * anything +0), a flushed addend and a flushed sum. Plain fmul and fadd without fast-math flags, so DXIL does not contract them into FMad. A v_mac VOP3 form with abs or neg on the accumulator is refused. Refs #3005 Co-Authored-By: Claude Opus 5.5 <[email protected]> # Conflicts: # src/gfx1013_direct_compute.inl
v_mad_f32, v_mad_legacy_f32, v_mac_f32 and v_mac_legacy_f32 follow
gfx2hlsl.py's mad32: denormal inputs flushed to signed zero, a separately
rounded product (the legacy forms make 0 * anything +0), a flushed addend
and a flushed sum. Plain fmul and fadd without fast-math flags, so DXIL
does not contract them into FMad. A v_mac VOP3 form with abs or neg on the
accumulator is refused.

Refs #3005

Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	src/gfx1013_direct_compute.inl
This pull request has changes conflicting with the target branch.
  • src/gfx1013_direct_compute.inl
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3122/head:github-bot/gh-3007'
git switch 'github-bot/gh-3007'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3007'
git switch 'github-bot/gh-3007'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3007'
git switch 'github-bot/gh-3007'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3007'
git switch 'main'
git merge --squash 'github-bot/gh-3007'
git switch 'main'
git merge --ff-only 'github-bot/gh-3007'
git switch 'main'
git merge 'github-bot/gh-3007'
git push origin 'main'
Sign in to join this conversation.
No description provided.