diff options
author | Danylo Piliaiev <[email protected]> | 2019-09-04 16:43:17 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2019-09-12 10:17:39 +0000 |
commit | 175c32e9bdc8b7b9c43f605cb59cd82415075f67 (patch) | |
tree | 7ae41e7935b81951c59d3d328bfa26ce2c0799e3 /src/gallium | |
parent | 544b156968e7adf507b8e8e6f59821675fa25054 (diff) |
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/nir/tgsi_to_nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c index 140b011290f..b5ca49336af 100644 --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c @@ -218,7 +218,7 @@ ttn_translate_interp_mode(unsigned tgsi_interp) case TGSI_INTERPOLATE_PERSPECTIVE: return INTERP_MODE_SMOOTH; case TGSI_INTERPOLATE_COLOR: - return INTERP_MODE_SMOOTH; + return INTERP_MODE_NONE; default: unreachable("bad TGSI interpolation mode"); } |