llvmpipe: simplify lp_resource_copy()
authorBrian Paul <brianp@vmware.com>
Wed, 10 Jun 2015 13:28:40 +0000 (07:28 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 10 Jun 2015 14:20:58 +0000 (08:20 -0600)
commit7217faf39f63f81b74f268d62fbdd94d445b0e6f
tree2d4adaeba473c4a0eac1b2d018645da31146ca71
parent5b0d6f5c1bc3f7bd37c6efebf48f80ca6ff3ef87
llvmpipe: simplify lp_resource_copy()

Just implement it in terms of util_resource_copy_region().  Both the
original code and util_resource_copy_region() boil down to mapping,
calling util_copy_box() and unmapping.

No piglit regressions.  This will also help to implement GL_ARB_copy_image.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_surface.c