st/mesa: Fix assertions for copying texture image to finalized miptree.
authorMichel Dänzer <michel.daenzer@amd.com>
Mon, 22 Oct 2012 17:20:56 +0000 (19:20 +0200)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 24 Oct 2012 16:14:09 +0000 (18:14 +0200)
commit8e019506257b720a1a6ff668aef57bff445a1725
tree9a3c2210ba6062e7b83a531fd525cbd45adf67bd
parent95c47f07a1d573c6e91c1d558f828fd8bc2a28fe
st/mesa: Fix assertions for copying texture image to finalized miptree.

The layer dimension of array textures is not subject to mipmap minification.
OTOH we were missing an assertion for the depth dimension.

Fixes assertion failures with piglit {f,v}s-textureSize-sampler1DArrayShadow.
For some reason, they only resulted in piglit 'warn' results for me, not
failures.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56211

NOTE: This is a candidate for the stable branches.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Andreas Boll <andreas.boll.dev@gmail.com>
(cherry picked from commit eee1ff423c6a0c9c776b4e76b79bb5ed5480d83c)
src/mesa/state_tracker/st_cb_texture.c