mesa: Generate the correct error for a depth format with a 3D texture
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 18 Dec 2013 22:09:58 +0000 (14:09 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 27 Jan 2014 21:21:42 +0000 (14:21 -0700)
commit88db6ad7dbe14e2f149d655cfe5b983e1a8751da
treefa6f5834c171fdbad57706bbb77cb7cb0be8c9fd
parent3f3aafbfeeb3939cb5cf710954ccefb8bbe9cff9
mesa: Generate the correct error for a depth format with a 3D texture

All versions of the OpenGL spec are quite clear that
GL_INVALID_OPERATION should be generated.  I added a quotation from the
3.3 core profile spec.

Fixes the glTexImage3D subcases of
ext_packed_depth_stencil-depth-stencil-texture and
oes_packed_depth_stencil-depth-stencil-texture_gles2.  The same subtests
of oes_packed_depth_stencil-depth-stencil-texture_gles1 fail, but they
fail with a different wrong error code.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/teximage.c