From fbbcc1fcc4a1e9e8ab794378a55e797ebaa3ed0a Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Tue, 19 Feb 2013 21:18:29 +0100 Subject: llvmpipe: lp_resource_copy cleanup We don't need to flush resources for each layer, and since we don't actually care about layer at all in the flush function just drop the parameter. Also we can use util_copy_box instead of repeated util_copy_rect. Reviewed-by: Jose Fonseca --- src/gallium/drivers/llvmpipe/lp_flush.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/gallium/drivers/llvmpipe/lp_flush.h') diff --git a/src/gallium/drivers/llvmpipe/lp_flush.h b/src/gallium/drivers/llvmpipe/lp_flush.h index efff94c8c0c..bc1e2a8ebcd 100644 --- a/src/gallium/drivers/llvmpipe/lp_flush.h +++ b/src/gallium/drivers/llvmpipe/lp_flush.h @@ -47,7 +47,6 @@ boolean llvmpipe_flush_resource(struct pipe_context *pipe, struct pipe_resource *resource, unsigned level, - int layer, boolean read_only, boolean cpu_access, boolean do_not_block, -- cgit v1.2.3