upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/shims/dxgi_com.cpp
diff options
context:
space:
mode:
authorShadman PC <iamanthonytony@gmail.com>2026-11-22 20:03:17 +0600
committerShadman PC <iamanthonytony@gmail.com>2026-11-22 20:25:59 +0600
commit40e17da629f1fe1d2d458a02c61955ef86fa8cec (patch)
tree9a8a03249fee27dc3a7020eaafc47eaba54210e1 /runtime/shims/dxgi_com.cpp
parent003e78129303643a3fdc9e5f0e31a01b09759236 (diff)
fix(translator): round v_fma_mixlo/hi_f16 once to f16 (SHADER-297)
Hardware measurement on RDNA2 (gfx1036, finding 7079901079) confirms that v_fma_mixlo_f16 / v_fma_mixhi_f16 round the exact fma once, straight to f16, across all rounding modes (7 of 7 discriminating cases in tools/fma_mix_probe.py match single rounding). The translator previously double-rounded in nearest-even mode (f32 Fma then f16 narrow). Change v_fma_mixlo_f16 / v_fma_mixhi_f16 to use Gen.fma_mix_odd across all modes, which rounds to odd at f32 so that narrowing to f16 gives the exact single-rounded result in both nearest-even and toward-zero modes. Update tests/test_fma_mix_probe.py and docs/shader_validation.md to reflect the RDNA2 hardware measurement, and add discriminating semantic tests in tests/semantic/test_valu_fma_mix.py. AI-assisted.
Diffstat (limited to 'runtime/shims/dxgi_com.cpp')
0 files changed, 0 insertions, 0 deletions