upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorTreXito <81475944+TreXito@users.noreply.github.com>2026-11-23 09:30:32 +0000
committerTreXito <81475944+TreXito@users.noreply.github.com>2026-11-23 11:54:32 +0000
commitb628d0dc8dd5776b14b6eaf228e4434ae1019ac1 (patch)
tree2cb22fc295ebda37b129fce5b5304b72c586cabe /runtime/src/thread_stacks.cpp
parent561b65a832218fbb9e6d2effd392a8eef093a3f8 (diff)
rdna2spirv: --fma exact keeps a tiny addend's tie-break and an infinite addend
Gen.fma_exact (SHADER-497) had two inputs where it was not the single-rounded f32 FMA it claims to be: - A product of at least 2^126 takes the 2^-64 scaling, which turned an addend with 0 < |z| < 2^-62 into 0 (or a denormal a flushing driver drops). When x*y lies exactly on a rounding tie, z's sign is what breaks it, so (1 + 2^-12)^2 * 2^126 + 2^-100 gave 0x7e801000 instead of 0x7e801001. Such a z now becomes a signed 2^-126, as v_div_fmas_f32 does for its own pre-scaling. - Infinite operands take the plain Fma. On a driver that splits it, a finite x*y beyond FLT_MAX rounds to an infinity first, and with z the other infinity the result was a NaN. Finite x and y with an infinite z now give z. --fma glsl and --fma khr translate as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions