nir: make nir_fisnan helper exact
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 30 Mar 2023 12:38:06 +0000 (13:38 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 10 Apr 2023 17:42:24 +0000 (17:42 +0000)
commitbb653b0acbee945652a0581ca6b06f3341665114
treea643cb8865d48e6b84e11b5d7f30452624bb1743
parenta6ab0cff08f58de890b48f09fa1ec0f392834aae
nir: make nir_fisnan helper exact

Floating point ALU assume no NaNs unless
FLOAT_CONTROLS_SIGNED_ZERO_INF_NAN_PRESERVE_FPn or (for some opcodes)
exact=true.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fixes: bf9c1699cd7 ("nir: add nir_fisnan helper function")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22206>
src/compiler/nir/nir_builtin_builder.h