summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorMichal Krol <michal@tungstengraphics.com>2008-03-25 23:48:30 +0100
committerMichal Krol <michal@tungstengraphics.com>2008-03-25 23:51:51 +0100
commitdc9757e1a8a0451a198d329880558b805adff42a (patch)
tree0c2195aa62715785ab1cf6712e4cd894e4048f8a /src/gallium
parent7f56c8ea5fe6909291ba440221b270f5ef37366f (diff)
gallium: Introduce flatshade_first field to rasterizer_state.
This bit tells us which vertex of the primitive is used to propagate color for the remaining vertices if flatshade mode.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/include/pipe/p_state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 3e531c4da4..a2bd8c6aaa 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -112,6 +112,7 @@ struct pipe_rasterizer_state
unsigned bypass_clipping:1;
unsigned bypass_vs:1; /**< vertices are already fully transformed */
unsigned origin_lower_left:1; /**< Is (0,0) the lower-left corner? */
+ unsigned flatshade_first:1; /**< take color attribute from the first vertex of a primitive */
float line_width;
float point_size; /**< used when no per-vertex size */