llvmpipe: lp_resource_copy cleanup
authorRoland Scheidegger <sroland@vmware.com>
Tue, 19 Feb 2013 20:18:29 +0000 (21:18 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 20 Feb 2013 18:37:30 +0000 (19:37 +0100)
commitfbbcc1fcc4a1e9e8ab794378a55e797ebaa3ed0a
tree205b67814c733974fea826ca73e9e5b2d15a1ead
parent95181ed2fdf1c3accb4b34daaea89c2dd509f87d
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 <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_flush.c
src/gallium/drivers/llvmpipe/lp_flush.h
src/gallium/drivers/llvmpipe/lp_surface.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/llvmpipe/lp_texture.h