svga: Fix multiple uploads of the same user-buffer.
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 30 Jun 2011 06:52:19 +0000 (08:52 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 1 Jul 2011 11:30:41 +0000 (13:30 +0200)
commit542194251c36e88601cb20b96a4094da5d0ae675
tree28592a4f56d161647dadd867e8b20b15c64cfc78
parenta8cf4b6acf9ee996090cc0bb95fa3558b481108c
svga: Fix multiple uploads of the same user-buffer.

If a user-buffer was referenced twice by a draw command, the affected ranges
were uploaded separately, with only the last one being referenced by the
hardware. Make sure we upload only a single range.

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