In draw_flatshade.c use vertex_info->interp_mode[] to choose attribs/colors to cpy.
authorBrian <brian.paul@tungstengraphics.com>
Thu, 30 Aug 2007 20:41:23 +0000 (14:41 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 30 Aug 2007 20:43:08 +0000 (14:43 -0600)
commit942b9bc5bc13d959baa86779a7c669cf96659b9a
tree8753ff6f40f91fb7b3eff740ccde1edb35349bed
parentaaf03b94861cbf5a602863e4542dd1c2e54ba365
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().
src/mesa/pipe/draw/draw_arrays.c
src/mesa/pipe/draw/draw_context.h
src/mesa/pipe/draw/draw_flatshade.c
src/mesa/pipe/draw/draw_vertex.h
src/mesa/pipe/i915simple/i915_state_derived.c
src/mesa/pipe/softpipe/sp_context.h
src/mesa/pipe/softpipe/sp_prim_setup.c
src/mesa/pipe/softpipe/sp_state_derived.c