svga: fix index buffer reference in the hw state
authorCharmaine Lee <charmainel@vmware.com>
Tue, 3 May 2016 01:12:24 +0000 (18:12 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 23 Jun 2016 13:31:19 +0000 (07:31 -0600)
commita1d74f5528f4bab6679fc08b1a25055336c85089
treef051a0ee58972655e927cd7a2b7a87b95b1a4f82
parentab99196b6bc5b0170db20db6cc3837ce7642d22a
svga: fix index buffer reference in the hw state

Instead of copy the index buffer resource handle to the hw state in
the context structure, use pipe_resource_reference to properly reference
the index buffer resource in the context.

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