mesa: Validate the layer selection of an array texture too
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 27 Jul 2013 19:27:45 +0000 (12:27 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 6 Aug 2013 19:18:46 +0000 (12:18 -0700)
commit25281fef0f480260c2e180e70af3eafdd5ecc9cd
tree9b858bd6415ddbd07a3320b1bdc770e1550cef0a
parent41485fea7c6061cca9d2706f39fa425da291b260
mesa: Validate the layer selection of an array texture too

Previously only the slice of a 3D texture was validated in the FBO
completeness check.  This fixes the failure in the 'invalid layer of an
array texture' subtest of piglit's fbo-incomplete test.

v2: 1D_ARRAY textures have Depth == 1.  Instead, compare against Height.

v3: Handle CUBE_MAP_ARRAY textures too.  Noticed by Marek.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "9.1 9.2" mesa-stable@lists.freedesktop.org
src/mesa/main/fbobject.c