diff options
author | Roland Scheidegger <[email protected]> | 2013-02-19 21:18:29 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2013-02-20 19:37:30 +0100 |
commit | fbbcc1fcc4a1e9e8ab794378a55e797ebaa3ed0a (patch) | |
tree | 205b67814c733974fea826ca73e9e5b2d15a1ead /src/gallium/drivers/llvmpipe/lp_texture.h | |
parent | 95181ed2fdf1c3accb4b34daaea89c2dd509f87d (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_texture.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_texture.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.h b/src/gallium/drivers/llvmpipe/lp_texture.h index 97a5547bd89..172228dc3fb 100644 --- a/src/gallium/drivers/llvmpipe/lp_texture.h +++ b/src/gallium/drivers/llvmpipe/lp_texture.h @@ -242,7 +242,7 @@ llvmpipe_init_context_texture_funcs(struct pipe_context *pipe); unsigned int llvmpipe_is_resource_referenced( struct pipe_context *pipe, struct pipe_resource *presource, - unsigned level, int layer); + unsigned level); unsigned llvmpipe_get_format_alignment(enum pipe_format format); |