nir_to_tgsi: Store directly to TGSI outputs when possible.
authorEric Anholt <eric@anholt.net>
Wed, 9 Dec 2020 23:49:16 +0000 (15:49 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 20 Jan 2021 19:48:59 +0000 (19:48 +0000)
commitf79f382c81f884bc217ad6efd8c7b3c8bbacdb01
tree5c5ce2363ece8532f6d1aa0a7962a846e520e773
parentf6e35e5fd0897411c6af3cbccc67212ad700f013
nir_to_tgsi: Store directly to TGSI outputs when possible.

Saves emitting a MOV at the end of the program to store the output.

softpipe glmark2 -b buffer +9.73451% +/- 3.17924% (n=6)
softpipe glmark2 -b build +5.57621% +/- 1.35074% (n=9)

Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8023>
src/gallium/auxiliary/nir/nir_to_tgsi.c