compiler/nir: rewrite lower_fragcoord_wtrans to use nir_lower_instructions
authorGert Wollny <gert.wollny@collabora.com>
Mon, 6 Jul 2020 07:38:01 +0000 (09:38 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 17 Aug 2020 12:38:05 +0000 (12:38 +0000)
commit7aaddf1a342944743f65ab0c55df46f2c7d3c17f
tree42ae5ff8a8d472c36f0b306dac7bbd51e17b3825
parentc9f4b14ac6d2e39584cea4d67d4b36a34c17f150
compiler/nir: rewrite lower_fragcoord_wtrans to use nir_lower_instructions

This compacts the code and makes it easier to extend.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Andreas Baierl <ichgeh@imkreisrum.de>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6220>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_fragcoord_wtrans.c