i965 gs: Remove unnecessary mapping of key->primitive.
authorPaul Berry <stereotype441@gmail.com>
Tue, 22 Nov 2011 18:30:36 +0000 (10:30 -0800)
committerPaul Berry <stereotype441@gmail.com>
Thu, 8 Dec 2011 00:38:00 +0000 (16:38 -0800)
commitfcae281f067f933d95734a932e66d3111d9f2192
tree6c76275fbf9961d1ddd74ab711dafb170571b984
parenta98ceee0ee3692783047c6f8f9f6bf6afbf4dd3b
i965 gs: Remove unnecessary mapping of key->primitive.

Previously, GS generation code contained a lookup table that mapped
primitive types POLYGON, TRISTRIP, and TRIFAN to TRILIST, mapped
LINESTRIP to LINELIST, and left all other primitives unchanged.  This
was silly, because we never generate a GS program for those primitive
types anyhow.

This patch removes the unnecessary lookup table.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_gs.h