mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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> (cherry picked from commit175c32e9bd)
This commit is contained in:
parent
9556c5b1a2
commit
30689e7da8
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue