llvmpipe: fix lp_resource_copy using more than one 3d slice
authorRoland Scheidegger <sroland@vmware.com>
Tue, 19 Feb 2013 03:19:07 +0000 (04:19 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 20 Feb 2013 18:37:30 +0000 (19:37 +0100)
commit95181ed2fdf1c3accb4b34daaea89c2dd509f87d
treef31a8d3c9e761a7709a9dea93b97bfc5277f1c62
parent413941e1a3155b29a190ab7ecfd844b1a5c2e460
llvmpipe: fix lp_resource_copy using more than one 3d slice

These used to be illegal a very long time ago, then for some more time
nothing really emitted these so this code path wasn't hit.
Just trivially iterate over box->depth.
(Might be worth refactoring at some point since nowadays all the code
doesn't really do much except for depth textures.)

This fixes https://bugs.freedesktop.org/show_bug.cgi?id=61093

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