summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/draw/draw_vertex.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-30 14:41:23 -0600
committerBrian <[email protected]>2007-08-30 14:43:08 -0600
commit942b9bc5bc13d959baa86779a7c669cf96659b9a (patch)
tree8753ff6f40f91fb7b3eff740ccde1edb35349bed /src/mesa/pipe/draw/draw_vertex.h
parentaaf03b94861cbf5a602863e4542dd1c2e54ba365 (diff)
In draw_flatshade.c use vertex_info->interp_mode[] to choose attribs/colors to cpy.
One less dependency on the TGSI_ATTRIB_x flags. This requires setting the vertex_info->interp_mode[] values in the i915 driver and passing them to draw_set_vertex_attributes().
Diffstat (limited to 'src/mesa/pipe/draw/draw_vertex.h')
-rw-r--r--src/mesa/pipe/draw/draw_vertex.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_vertex.h b/src/mesa/pipe/draw/draw_vertex.h
index 5d22e01d5cc..6778df30d1e 100644
--- a/src/mesa/pipe/draw/draw_vertex.h
+++ b/src/mesa/pipe/draw/draw_vertex.h
@@ -47,6 +47,15 @@
#define FORMAT_4UB 5
+enum interp_mode {
+ INTERP_NONE, /**< never interpolate vertex header info */
+ INTERP_CONSTANT,
+ INTERP_LINEAR,
+ INTERP_PERSPECTIVE
+};
+
+
+
struct vertex_info
{
uint num_attribs;