svga: try to avoid index generation for some primitive types
authorBrian Paul <brianp@vmware.com>
Fri, 16 Oct 2015 22:14:46 +0000 (16:14 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 22 Oct 2015 23:19:20 +0000 (17:19 -0600)
commit99effaa9658a34eb07255bb1964569c8a86e8dda
tree72f8a3e07161ec7f7a85b857a62bf877734df263
parent129d34da494840628b2bb1cbb6397d50dab3c999
svga: try to avoid index generation for some primitive types

The svga device doesn't directly support quads, quad strips or polygons
so we have to convert those types to indexed triangle lists.  But we
can sometimes avoid that if we're drawing flat/constant-colored prims
and we don't have to worry about provoking vertex.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_draw_arrays.c