svga: fix incorrect memcpy src in svga_buffer_upload_piecewise()
authorBrian Paul <brianp@vmware.com>
Thu, 3 Oct 2013 17:51:14 +0000 (11:51 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 4 Oct 2013 16:25:37 +0000 (10:25 -0600)
commita50c5f8d24e860baa15dd75b44b9a20af60cebf8
tree1f82d3fed72521a5074fbcf66d807b1cdf4d9721
parentd164d50a85e5c42a8ed0c5082564f69e13aa09e0
svga: fix incorrect memcpy src in svga_buffer_upload_piecewise()

As we march over the source buffer we're uploading in pieces, we
need to memcpy from the current offset, not the start of the buffer.
Fixes graphical corruption when drawing very large vertex buffers.

Cc: "9.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Matthew McClure <mcclurem@vmware.com>
src/gallium/drivers/svga/svga_resource_buffer_upload.c