i965: Split brw_set_prim into brw/gen6 variants
authorChad Versace <chad@chad-versace.us>
Mon, 26 Sep 2011 22:48:54 +0000 (15:48 -0700)
committerChad Versace <chad@chad-versace.us>
Mon, 10 Oct 2011 20:23:41 +0000 (13:23 -0700)
commit9559ca600dde0877fe0abd04dd789bd5a3cdfbde
tree1c697a2daf4720c37dbee7794760209ab140efb1
parent95fd5e5aba2e21ab20cb971506a81c0049b5a694
i965: Split brw_set_prim into brw/gen6 variants

The "slight optimization to avoid the GS program" in brw_set_prim() is not
used by Gen 6, since Gen 6 doesn't use a GS program. Also, Gen 6 doesn't use
reduced primitives.

Also, document that intel_context.reduced_primitive is only used for Gen < 6

Reviewed-by: Eric Anholt <eric@anho.net>
Signed-off-by: Chad Versace <chad@chad-versace.us>
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/intel/intel_context.h