From 419cd5f2a24b87d31a2fd9dd9b7d0025b4f5515c Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 20 Sep 2013 15:08:29 +0200 Subject: gallium: add flush_resource context function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit r600g needs explicit flushing before DRI2 buffers are presented on the screen. v2: add (stub) implementations for all drivers, fix frontbuffer flushing v3: fix galahad Signed-off-by: Marek Olšák --- src/gallium/drivers/softpipe/sp_surface.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gallium/drivers/softpipe/sp_surface.c') diff --git a/src/gallium/drivers/softpipe/sp_surface.c b/src/gallium/drivers/softpipe/sp_surface.c index 9e1523fcf3e..41f512dff4e 100644 --- a/src/gallium/drivers/softpipe/sp_surface.c +++ b/src/gallium/drivers/softpipe/sp_surface.c @@ -83,6 +83,12 @@ static void sp_blit(struct pipe_context *pipe, util_blitter_blit(sp->blitter, info); } +static void +sp_flush_resource(struct pipe_context *pipe, + struct pipe_resource *resource) +{ +} + static void softpipe_clear_render_target(struct pipe_context *pipe, struct pipe_surface *dst, @@ -127,4 +133,5 @@ sp_init_surface_functions(struct softpipe_context *sp) sp->pipe.clear_render_target = softpipe_clear_render_target; sp->pipe.clear_depth_stencil = softpipe_clear_depth_stencil; sp->pipe.blit = sp_blit; + sp->pipe.flush_resource = sp_flush_resource; } -- cgit v1.2.3