diff options
author | José Fonseca <[email protected]> | 2010-02-22 19:24:18 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-02-22 21:47:22 +0000 |
commit | b330928549b39e97e16aee636c335865504ffab9 (patch) | |
tree | 989d3e5ed6c7078beb78662e6921e275f7a5008d /src/gallium/drivers/svga/svga_screen_buffer.h | |
parent | 8ea7d8412c5c002b43824a5df5356cbe1a05ce20 (diff) |
svga: Upload user buffers only once.
Diffstat (limited to 'src/gallium/drivers/svga/svga_screen_buffer.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen_buffer.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_screen_buffer.h b/src/gallium/drivers/svga/svga_screen_buffer.h index 937cf30478d..8c862fa62d6 100644 --- a/src/gallium/drivers/svga/svga_screen_buffer.h +++ b/src/gallium/drivers/svga/svga_screen_buffer.h @@ -135,6 +135,19 @@ struct svga_buffer } map; /** + * Information about uploaded version of user buffers. + */ + struct { + struct pipe_buffer *buffer; + + /** + * We combine multiple user buffers into the same hardware buffer. This + * is the relative offset within that buffer. + */ + unsigned offset; + } uploaded; + + /** * DMA'ble memory. * * A piece of GMR memory, with the same size of the buffer. It is created |