diff options
| author | controldebils <232935122+controldebils@users.noreply.github.com> | 2026-11-22 23:35:38 +0100 |
|---|---|---|
| committer | controldebils <232935122+controldebils@users.noreply.github.com> | 2026-11-22 23:35:38 +0100 |
| commit | 35f19f437325330fc1aaf7cd04a60100649ee751 (patch) | |
| tree | d2c903b434c254a7bf70a57e57582b2fd2f1aa85 /runtime/src/pe_loader.cpp | |
| parent | dc6068cc68f45d425a1219e48a251f1be2252c04 (diff) | |
SHADER-650: BVH box slab distances round toward zero, as measured
Native gfx1030 rounds both (plane - origin) and the multiply by the
inverse direction toward zero: 811 measured cases (800 randomized slabs
far from the origin plus 11 ties), round-to-nearest predicts 769,
round-toward-zero all 811. kacper-serewis's inverted box at
origin.x = -2^25 is a hit on hardware for this reason.
The translator emulates it exactly: TwoSum error for the subtraction,
a Dekker split of the scaled mantissas for the product's error sign,
one ulp back toward zero when the nearest result went away from zero,
finite overflow to +-FLT_MAX. 50 of the rounding cases are added to
test_image_bvh_box_hw.py.
AI-assisted (Claude Code).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions