nir: Add fclamp_pos opcode
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 1 May 2020 16:15:10 +0000 (12:15 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 20:21:27 +0000 (20:21 +0000)
commitc2b0f3c17d055152795c022da8202043baa3e15f
tree6d1b95d4bbdfb9cf5ee7ead38bf5e6a34322ac41
parent0aedce417ae48293f8bebd41c3d69b759b003cf1
nir: Add fclamp_pos opcode

Corresponds to the .pos modifier on all Mali GPUs (lima and panfrost).

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