nir: Add pack_half_2x16_rtz_split opcode.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 24 Jan 2023 17:53:52 +0000 (18:53 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 26 Jan 2023 12:24:24 +0000 (12:24 +0000)
commit12652cc54932ae1f2b2d8c71ce6c613f93283498
tree0a593c221e0aceafbe1dc01cbe481ecac93ee79f
parent13cca489203bbfb30050fb79bcaff92f5691c7d8
nir: Add pack_half_2x16_rtz_split opcode.

Same as pack_half_2x16_rtz_split, but always uses RTZ mode.
Note that pack_half_2x16 rounding mode is unspecified.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15838>
src/compiler/nir/nir.h
src/compiler/nir/nir_constant_expressions.py
src/compiler/nir/nir_opcodes.py