gallium/ntt: Stop lowering integer source mods.
authorEric Anholt <eric@anholt.net>
Thu, 7 Jan 2021 18:04:03 +0000 (10:04 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 Jan 2021 22:52:10 +0000 (22:52 +0000)
commit1ff2c01741bf14b3af9e36f0e4c8b5a92e60cbf2
tree66dba3bb3cd8a2d17da8de37ef54f98491de9bf4
parentecaa7c3e39424c6617752bd6561bf900d9da2d86
gallium/ntt: Stop lowering integer source mods.

While tgsi_exec.c (softpipe) implemented 32b integer src mods, the
tgsi.rst documentation says only 32b negate is supported and not abs.
llvmpipe implemented 32 and 64 negate but not abs, virgl implemented
negate incorrectly, and r600 apparently doesn't do any integer src mods.
glsl_to_tgsi has apparently never generated integer src mods.

Given that r600 can't do any integer src mods, just stop trying to
generate them for TGSI.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8369>
src/gallium/auxiliary/nir/nir_to_tgsi.c