summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_shader.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-06-30 13:28:49 +0200
committerMarek Olšák <[email protected]>2016-07-05 00:47:12 +0200
commit4d1f32376d845c08d2fd7cc868f143bc7cf6f9c9 (patch)
tree335f8de999948435cd83efc79f5d82680965008c /src/gallium/drivers/radeonsi/si_shader.h
parent4accb02d7a3722b3e1eb12252201846353f002b7 (diff)
radeonsi: don't interpolate colors if flatshading is enabled
use v_interp_mov for those Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h
index 3b7b3e155b3..14ef4e74994 100644
--- a/src/gallium/drivers/radeonsi/si_shader.h
+++ b/src/gallium/drivers/radeonsi/si_shader.h
@@ -311,7 +311,7 @@ struct si_tcs_epilog_bits {
/* Common PS bits between the shader key and the prolog key. */
struct si_ps_prolog_bits {
unsigned color_two_side:1;
- /* TODO: add a flatshade bit that skips interpolation for colors */
+ unsigned flatshade_colors:1;
unsigned poly_stipple:1;
unsigned force_persp_sample_interp:1;
unsigned force_linear_sample_interp:1;