upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorWHOISJARDAS <144918410+WHOISJARDAS@users.noreply.github.com>2026-11-22 01:34:00 +0000
committerWHOISJARDAS <144918410+WHOISJARDAS@users.noreply.github.com>2026-11-22 15:35:13 +0000
commitbd8fb7c9f544cabd91c1de55274644ba60e9d791 (patch)
tree3dbd6d61c1fc283d09b2ac94ad01bcc990bb549f /runtime/src/pe_loader.cpp
parent4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff)
Translator: declare SignedZeroInfNanPreserve so drivers keep NaN, inf and -0
RDNA2 float ops return NaN, +-inf and -0 as computed. Without float controls, Vulkan lets the driver assume none of them occur, and AMD's compiler does. On an RX 9070 XT (26.11.2), x != x NaN checks fold to false and -0 products come back +0. With integer f16 narrowing (#575), NaN results are never stored. - rdna2spirv.py: every module declares the SignedZeroInfNanPreserve capability and OpExecutionMode SignedZeroInfNanPreserve 32. The index entry lists the property it needs (float_controls). --no-float-controls leaves both out. - vk_pipeline_check: reads float_controls and skips a shader on a device without shaderSignedZeroInfNanPreserveFloat32. - GPU test cs_signed_zero_nan (check.py, run_gpu_tests.py): without the mode, out[4..7] are 0 on AMD; with it, all eight words match. - tests/test_translate.py: covers the mode, the index entry and the opt-out. - docs/design.md: a "Float controls" contract row. 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