nir: Add fsat_signed opcode
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 30 Apr 2020 18:31:47 +0000 (14:31 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 20:21:27 +0000 (20:21 +0000)
commit0aedce417ae48293f8bebd41c3d69b759b003cf1
tree268751b652f373d294d159bd5208d6cd43af5ceb
parent518909290b0123f3bcfec8d6854c25ce451c44e8
nir: Add fsat_signed opcode

Exists on later Mali. Equivalent to clamp(x, -1.0, 1.0)

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5102>
src/compiler/nir/nir_opcodes.py