add i965 primitive restart hardware support where possible
v2:
* Only enable NV_primitive_restart for gen >= 4
* Move function names to the beginning of lines
* Don't include brw_context.h from brw_draw.h
* brw_handle_primitive_restart returns GLboolean instead
of bool
* Only call vbo_sw_primitive_restart once in
brw_handle_primitive_restart
* Add comments to various functions
v1:
* Enable NV_primitive_restart for all hardware. (Software primitive
restart is used where necessary)
* If hardware supports cut index and cut index can handle the
primitive restart scenario, then use cut index to implement
hardware support for primitive restart during the draw.
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>
1 file changed