nir_to_tgsi: Set the TGSI Precise flag for exact ALU instructions.
authorEmma Anholt <emma@anholt.net>
Tue, 14 Dec 2021 23:51:13 +0000 (15:51 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 15 Dec 2021 21:58:04 +0000 (21:58 +0000)
commit3ffd6f3fa624c2da09c8ab72588f89fdfc501c69
treea3382c97c4e27c6a10ca6b050d4a9eca616bea11
parentaf4d277cccbba77a78f49c83305f99eef8c12f4a
nir_to_tgsi: Set the TGSI Precise flag for exact ALU instructions.

This flag is used by the nv50, r600, and svga backends for instruction
exactness.  It was easier to plumb it in as an override in tgsi_ureg than
to make all of ALU instruction emit do it.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14201>
src/gallium/auxiliary/nir/nir_to_tgsi.c
src/gallium/auxiliary/tgsi/tgsi_ureg.c
src/gallium/auxiliary/tgsi/tgsi_ureg.h