gallium/svga: Don't replace user vertex buffer with uploaded copy
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 7 Mar 2011 09:40:26 +0000 (10:40 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 9 Mar 2011 07:49:33 +0000 (08:49 +0100)
commit52e598d200108ab9cfc9c9d828bbebdc576e9703
tree124e51bcb6c6749b7ee3968ccc7bc53e49dee5d2
parentc0d3fb4b6c11fd128921c464f753480a137555a0
gallium/svga: Don't replace user vertex buffer with uploaded copy

Do that later on when we set up the hwtnl state instead.
This addresses a problem when we drop the uploaded copy due to a vb
size change, it will remain referenced in svga->curr.vb[], and the
new contents of the vb will never be uploaded.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
src/gallium/drivers/svga/svga_state_vdecl.c