svga: rebind index buffer
authorCharmaine Lee <charmainel@vmware.com>
Wed, 20 Jan 2016 04:25:39 +0000 (20:25 -0800)
committerBrian Paul <brianp@vmware.com>
Mon, 21 Mar 2016 19:37:40 +0000 (13:37 -0600)
commit47cfc83440c3030999a08c0b5fccae860294608c
tree5e653b7d0ba4675fbee5a0f74f144591202daddd
parent299f8ca0a7f723dfbf757385c8c7c221c3b87683
svga: rebind index buffer

Similar to other resources, current index buffer needs to be
rebound at the first draw of the current command buffer to make
sure the buffer is available for the draw command.

Fixes bug 1587263.

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