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)
committerMichel Dänzer <michel@daenzer.net>
Wed, 24 Oct 2012 15:54:25 +0000 (17:54 +0200)
commiteee1ff423c6a0c9c776b4e76b79bb5ed5480d83c
treea0ee20c68a9cf4b8fdd602ecd96345556598f7bc
parentecb02c27fc02c7212c23e96bf74d620a81b13583
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>
src/mesa/state_tracker/st_cb_texture.c