diff options
author | Thomas Hellstrom <[email protected]> | 2011-03-17 21:09:38 +0100 |
---|---|---|
committer | Thomas Hellstrom <[email protected]> | 2011-07-01 13:30:38 +0200 |
commit | 2b301df4aa00cbf4f88c716bda292d0c7126ff95 (patch) | |
tree | b85ac043e87ae4545ede7924dc80ecb52f0c12ea /src/gallium/drivers/svga/svga_draw_private.h | |
parent | 0277df86dfdf1738396bc7885bec3054c86c834f (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_draw_private.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_draw_private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_draw_private.h b/src/gallium/drivers/svga/svga_draw_private.h index ca658ac6745..8126f7ee23c 100644 --- a/src/gallium/drivers/svga/svga_draw_private.h +++ b/src/gallium/drivers/svga/svga_draw_private.h @@ -116,6 +116,13 @@ struct draw_cmd { struct svga_hwtnl { struct svga_context *svga; struct u_upload_mgr *upload_ib; + + /* Additional negative index bias due to partial buffer uploads + * This is compensated for in the offset associated with all + * vertex buffers. + */ + + int index_bias; /* Flatshade information: */ |