gallium: Introduce flatshade_first field to rasterizer_state.
authorMichal Krol <michal@tungstengraphics.com>
Tue, 25 Mar 2008 22:48:30 +0000 (23:48 +0100)
committerMichal Krol <michal@tungstengraphics.com>
Tue, 25 Mar 2008 22:51:51 +0000 (23:51 +0100)
This bit tells us which vertex of the primitive is used to
propagate color for the remaining vertices if flatshade mode.

src/gallium/include/pipe/p_state.h

index 3e531c4da4884643a85127ad002908d797dfc9b4..a2bd8c6aaab34e4ac403c09a2ca6783aaf9b33c2 100644 (file)
@@ -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 */