tgsi_to_nir: Translate TGSI_INTERPOLATE_COLOR as INTERP_MODE_NONE
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Wed, 4 Sep 2019 13:43:17 +0000 (16:43 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 12 Sep 2019 10:17:39 +0000 (10:17 +0000)
commit175c32e9bdc8b7b9c43f605cb59cd82415075f67
tree7ae41e7935b81951c59d3d328bfa26ce2c0799e3
parent544b156968e7adf507b8e8e6f59821675fa25054
tgsi_to_nir: Translate TGSI_INTERPOLATE_COLOR as INTERP_MODE_NONE

Translating TGSI_INTERPOLATE_COLOR as INTERP_MODE_SMOOTH made
it for drivers impossible to have flatshaded color inputs.

Translate it to INTERP_MODE_NONE which drivers interpret as
smooth or flat depending on flatshading state.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111467

Fixes: 770faf54 ("tgsi_to_nir: Improve interpolation modes.")
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/auxiliary/nir/tgsi_to_nir.c