i965: use cut index to handle primitive restart when possible
authorJordan Justen <jordan.l.justen@intel.com>
Sun, 13 May 2012 07:23:23 +0000 (00:23 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 23 May 2012 22:19:09 +0000 (15:19 -0700)
commitdc501452534e6e004acf3206a581232971c00cd0
treede478d72343de97db72f98c2c500ee0c2f71db07
parentf9389fbfb204995a650047949c48ab2b2703bfcf
i965: use cut index to handle primitive restart when possible

If the primitive restart index and the primitive type can
be handled by the cut index feature, then use the hardware
to handle the primitive restart feature.

The VBO module's software handling of primitive restart is
used as a fall back.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_primitive_restart.c