From 0277df86dfdf1738396bc7885bec3054c86c834f Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Thu, 17 Mar 2011 15:09:48 +0100 Subject: gallium/svga: Make use of u_upload_flush(). This enables us to pack more data into single upload buffers. Signed-off-by: Thomas Hellstrom --- src/gallium/drivers/svga/svga_context.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gallium/drivers/svga/svga_context.c') diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c index dbbc249258d..cfb1b9d8d0d 100644 --- a/src/gallium/drivers/svga/svga_context.c +++ b/src/gallium/drivers/svga/svga_context.c @@ -207,6 +207,14 @@ void svga_context_flush( struct svga_context *svga, svga->curr.nr_fbs = 0; + /* Flush the upload managers to ensure recycling of upload buffers + * without throttling. This should really be conditioned on + * pipe_buffer_map_range not supporting PIPE_TRANSFER_UNSYNCHRONIZED. + */ + + u_upload_flush(svga->upload_vb); + u_upload_flush(svga->upload_ib); + /* Ensure that texture dma uploads are processed * before submitting commands. */ -- cgit v1.2.3