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/radeonsi/r600_blit.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gallium/drivers/radeonsi/r600_blit.c') diff --git a/src/gallium/drivers/radeonsi/r600_blit.c b/src/gallium/drivers/radeonsi/r600_blit.c index 9d7c7380555..fef4cccb8e6 100644 --- a/src/gallium/drivers/radeonsi/r600_blit.c +++ b/src/gallium/drivers/radeonsi/r600_blit.c @@ -720,6 +720,11 @@ static void si_blit(struct pipe_context *ctx, r600_blitter_end(ctx); } +static void si_flush_resource(struct pipe_context *ctx, + struct pipe_resource *resource) +{ +} + void si_init_blit_functions(struct r600_context *rctx) { rctx->b.b.clear = r600_clear; @@ -727,4 +732,5 @@ void si_init_blit_functions(struct r600_context *rctx) rctx->b.b.clear_depth_stencil = r600_clear_depth_stencil; rctx->b.b.resource_copy_region = r600_resource_copy_region; rctx->b.b.blit = si_blit; + rctx->b.b.flush_resource = si_flush_resource; } -- cgit v1.2.3