diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2011-03-17 21:09:38 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2011-07-01 13:30:38 +0200 |
commit | 2b301df4aa00cbf4f88c716bda292d0c7126ff95 (patch) | |
tree | b85ac043e87ae4545ede7924dc80ecb52f0c12ea /src/gallium/drivers/svga/svga_draw.h | |
parent | 0277df86dfdf1738396bc7885bec3054c86c834f (diff) | |
download | external_mesa3d-2b301df4aa00cbf4f88c716bda292d0c7126ff95.zip external_mesa3d-2b301df4aa00cbf4f88c716bda292d0c7126ff95.tar.gz external_mesa3d-2b301df4aa00cbf4f88c716bda292d0c7126ff95.tar.bz2 |
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>
Diffstat (limited to 'src/gallium/drivers/svga/svga_draw.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_draw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_draw.h b/src/gallium/drivers/svga/svga_draw.h index a2403d8..1dac174 100644 --- a/src/gallium/drivers/svga/svga_draw.h +++ b/src/gallium/drivers/svga/svga_draw.h @@ -79,5 +79,8 @@ svga_hwtnl_draw_range_elements( struct svga_hwtnl *hwtnl, enum pipe_error svga_hwtnl_flush( struct svga_hwtnl *hwtnl ); +void svga_hwtnl_set_index_bias( struct svga_hwtnl *hwtnl, + int index_bias); + #endif /* SVGA_DRAW_H_ */ |