gallium/svga: Upload only parts of user-buffers that we actually use
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 17 Mar 2011 20:09:38 +0000 (21:09 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 1 Jul 2011 11:30:38 +0000 (13:30 +0200)
commit2b301df4aa00cbf4f88c716bda292d0c7126ff95
treeb85ac043e87ae4545ede7924dc80ecb52f0c12ea
parent0277df86dfdf1738396bc7885bec3054c86c834f
gallium/svga: Upload only parts of user-buffers that we actually use

Stream user buffer contents rather than trying to maintain persistent
host / hardware copies.
Resulting negative array offsets are not allowed by the hardware,
(well, at least not according to header files), so adjust index bias
to make all array offsets positive.

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