From b330928549b39e97e16aee636c335865504ffab9 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 22 Feb 2010 19:24:18 +0000 Subject: svga: Upload user buffers only once. --- src/gallium/drivers/svga/svga_screen_buffer.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/gallium/drivers/svga/svga_screen_buffer.h') 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 @@ -134,6 +134,19 @@ struct svga_buffer unsigned num_ranges; } 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. * -- cgit v1.2.3