svga: optimize memcpy() in svga_buffer_update_hw()
authorBrian Paul <brianp@vmware.com>
Fri, 12 Aug 2016 16:44:22 +0000 (10:44 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 17 Sep 2016 16:08:59 +0000 (10:08 -0600)
commitce3b34b72702195694ee8fc64c8259d4a16711ab
tree2855e336d6835137cbef993860ca8ab3d692a550
parentb7bee2505239ef1a14fecde5b73ffdab67694aa2
svga: optimize memcpy() in svga_buffer_update_hw()

When we migrate a buffer from sw/malloc storage to a hardware buffer,
don't memcpy the whole buffer, just copy the part we've written to.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_resource_buffer_upload.c