tgsi_to_nir: Improve interpolation modes.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 19 Feb 2019 09:11:36 +0000 (10:11 +0100)
committerEric Anholt <eric@anholt.net>
Tue, 5 Mar 2019 19:13:27 +0000 (19:13 +0000)
commit770faf546d14db6a8eced0da406e48a32fabf551
tree718858f021033508885a87461c19ed33f5a6f8ab
parent2fb800fd1d1125bdb8cd498cf7b358098337ba73
tgsi_to_nir: Improve interpolation modes.

This patch extracts the interpolation mode translation
into a separate function called ttn_translate_interp_mode,
adds support for TGSI_INTERPOLATE_COLOR which was missing,
and also sets the proper interpolation mode to output
variables, which were not set previously.

Signed-Off-By: Timur Kristóf <timur.kristof@gmail.com>
Tested-by: Andre Heider <a.heider@gmail.com>
Tested-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/auxiliary/nir/tgsi_to_nir.c