mesa/es: Validate tex image targets in Mesa code rather than the ES wrapper
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 26 Jul 2012 17:39:45 +0000 (10:39 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 23 Aug 2012 17:15:30 +0000 (10:15 -0700)
commit530c9d764b84035728a28ee2db996fffe49125ce
treed0aa30f5a9b4b6fd8f902d3d9df2777c2c8533bc
parentea9b212fca78eada7cc7c4449de3f31d2ceea1c3
mesa/es: Validate tex image targets in Mesa code rather than the ES wrapper

This should take care of all the TexImage, TexSubImage, CopyTexImage,
CompressedTexImage3DOES, and CopyTexSubImage type paths.

v2: Add proper core-profile and GLES3 filtering.

v3: Squash the CompressedTexImage3DOES patch per review comment from
Ken.

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