mesa/src
Eduardo Lima Mitev 15ab968f62 mesa: Fix order of format+type and internal format checks for glTexImageXD ops
The more specific GLES constrains should be checked after the general
validation performed by _mesa_error_check_format_and_type(). This is also
for consistency with the error checks order of glTexSubImage ops.

v3: The change of order uncovered a bug that regresses a couple of piglit
tests written against OpenGL-ES 1.1 spec, which expects an INVALID_VALUE
instead of the INVALID_ENUM returned by _mesa_error_check_format_and_type()
when an invalid format is passed to glTexImage2D. This version of the patch
accounts for those cases.

Fixes 1 dEQP test:
* dEQP-GLES3.functional.negative_api.texture.teximage2d

Cc: "11.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
2015-09-28 11:39:53 -07:00
..
egl egl: Fix missing Haiku include path 2015-09-28 13:58:25 -04:00
gallium state_trackers/hgl: Fix missing include path 2015-09-28 13:58:24 -04:00
gbm gbm: convert gbm bo format to fourcc format on dma-buf import 2015-09-15 12:27:45 +01:00
getopt
glsl glsl: revert "glsl: atomic counters can be declared as buffer-qualified variables" 2015-09-28 14:23:26 +02:00
glx glxl/tests: Use X11_INCLUDES instead of X11_CFLAGS 2015-09-07 10:43:32 +01:00
gtest
hgl
loader
mapi glapi: add ARB_shader_storage_block_buffer_object 2015-09-25 08:39:23 +02:00
mesa mesa: Fix order of format+type and internal format checks for glTexImageXD ops 2015-09-28 11:39:53 -07:00
util util: automake: rework the format_srgb.c rule 2015-09-09 12:48:09 +01:00
Makefile.am glsl: shader-enum to name debug fxns 2015-09-16 10:04:13 -04:00
SConscript