indices: fix provoking vertex for quads/quadstrips
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 7 Apr 2015 05:42:05 +0000 (01:42 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 18 Apr 2015 22:27:22 +0000 (18:27 -0400)
commitb2e871bd484db229978cfe4b7efa12dfd79067a8
tree4a415684226b993f623f88e10cb177e3bc660223
parent1cdb01d716cb8112c67f8538f7d71d0765153eb2
indices: fix provoking vertex for quads/quadstrips

This allows drivers to provide consistent flat shading for quads.
Otherwise a driver that only supported tris would have to force last
provoking vertex when drawing quads (and would have to say that quads
don't follow the provoking vertex convention).

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Rob Clark <robclark@freedesktop.org>
src/gallium/auxiliary/indices/u_indices_gen.py