From 1e9d8934a1a56e888f07a3571038a3f9205a72ae Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Thu, 27 Oct 2011 19:09:25 +0100 Subject: svga: Flush the hwtnl primitives before writing to buffers. svga keeps a small queue of similar primitive draws in order to coalesce them into a single draw primitive command. But the buffers referred in primitives not yet emitted were being ignored in the considerations to flush or not the context. This fixes piglit vbo-map-remap, vbo-subdata-sync, vbo-subdata-zero, and Seeker. Based on investigation and patch from Brian Paul. Reviewed-By: Brian Paul --- src/gallium/drivers/svga/svga_draw.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gallium/drivers/svga/svga_draw.h') diff --git a/src/gallium/drivers/svga/svga_draw.h b/src/gallium/drivers/svga/svga_draw.h index 1dac17421e1..31bea524384 100644 --- a/src/gallium/drivers/svga/svga_draw.h +++ b/src/gallium/drivers/svga/svga_draw.h @@ -76,6 +76,10 @@ svga_hwtnl_draw_range_elements( struct svga_hwtnl *hwtnl, unsigned start, unsigned count ); +boolean +svga_hwtnl_is_buffer_referred( struct svga_hwtnl *hwtnl, + struct pipe_resource *buffer ); + enum pipe_error svga_hwtnl_flush( struct svga_hwtnl *hwtnl ); -- cgit v1.2.3