nir: Remove integer and 64-bit modifiers
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 21 Jun 2023 22:16:07 +0000 (18:16 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 22 Jun 2023 19:55:49 +0000 (19:55 +0000)
commit7ddfc43fdffb4b38f721c7449fd0c9dcf29749b7
tree0d759f04e507a3dfe03c06dd6ed21bff35f339b0
parenta2fc3213f8965b0a9b739eabcf8671c3df14ad5e
nir: Remove integer and 64-bit modifiers

Now that Intel and R600 both do their own modifier propagation, the only
backends that still lower modifiers in NIR are:

* nir-to-tgsi
* lima
* etnaviv
* a2xx

The latter 3 backends do not support integers, and certainly do not support
fp64. So they don't use these.

TGSI in theory supports integer negate modifiers but NTT doesn't use them, so
they're unused there too.

Since they're unused, we remove NIR support for integer and 64-bit modifiers,
leaving only 16/32-bit float modifiers. This will reduce the scope needed for a
replacement to NIR modifiers, being pursued in !23089.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23782>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_to_source_mods.c
src/gallium/auxiliary/nir/nir_to_tgsi.c
src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c