svga: Fix the index buffer rebind regression
authorCharmaine Lee <charmainel@vmware.com>
Tue, 26 Jan 2016 19:12:09 +0000 (11:12 -0800)
committerBrian Paul <brianp@vmware.com>
Mon, 21 Mar 2016 19:37:40 +0000 (13:37 -0600)
commitf8aaf0094dd23b5f94bbef5fd444861d286ddb36
tree360e98f12b93eafddb010722ca0a8405c02bc759
parent47856e59456361f2218e03d997d2735e1a848230
svga: Fix the index buffer rebind regression

The index buffer handle saved in the hw_state structure could
be invalid after the index buffer is destroyed. Instead of
rebinding the index buffer using the saved index buffer handle,
we will reset the index buffer handle in the hw_state structure
to force resending of the index buffer.

Fixes bug 1593320

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