svga: avoid redundant SetVertexBuffer/SetIndexBuffer commands at rebind
authorCharmaine Lee <charmainel@vmware.com>
Fri, 22 Jul 2016 22:05:02 +0000 (15:05 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 1 Aug 2016 18:20:19 +0000 (12:20 -0600)
commitc2b4942afcc7389ba99e230ec34eab03d9863205
tree81830134a88af9e6b78545a086a89b9c662daa68
parent53b2b8bf6f12547a0dde25cfb8e6926ac144f5d8
svga: avoid redundant SetVertexBuffer/SetIndexBuffer commands at rebind

This patch eliminates the redundant SetVertexBuffers and
SetIndexBuffer commands that are emitted for rebind purpose.
With this patch, the set commands will be skipped, but we will still
reference the associated resources to allow the kernel to
bring in the resources.

Tested with Lightsmark2008, Valley, MTT glretrace, piglit, conform.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_draw.c