svga: fix use of provoking vertex control
authorBrian Paul <brianp@vmware.com>
Tue, 17 May 2016 16:44:01 +0000 (10:44 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 8 Jul 2016 18:53:20 +0000 (12:53 -0600)
commitca531aeeb120cdda966120a17cdf50aa14c3129b
treeaa6fa3a4a0fa391c58097ed259ff58535bd32a54
parentaf18a047557944abb91dc409c5a32e6b2911d132
svga: fix use of provoking vertex control

If the SVGA3D_DEVCAP_DX_PROVOKING_VERTEX query returns false, never
define rasterizer state objects with provokingVertexLast set.  Despite
what the device reports, it may interpret the provokingVertexLast flag
anyway.  This fixes an issue when using capability clamping.

Tested with piglit provoking-vertex and glsl-fs-flat-color tests.

VMware bug 1550143.

Reviewed-by: <charmainel@vmware.com>
src/gallium/drivers/svga/svga_pipe_rasterizer.c