mesa/src
Tapani Pälli a1652a059e mesa: fix error handling in DrawBuffers
Patch rearranges error checking so that enum checking provided via
destmask happens before other checks. It needs to be done in this
order because other error checks do not work properly if there were
invalid enums passed.

Patch also refines one existing check and it's documentation to match
GLES 3.0 spec (also in later specs). This was somewhat mysteriously
referring to desktop GL but had a check for gles3.

Fixes following dEQP tests:

   dEQP-GLES31.functional.debug.negative_coverage.get_error.buffer.draw_buffers

no CI regressions observed.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98134
Cc: "12.0 13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2016-10-25 08:04:11 +03:00
..
amd radv: allow cmask transitions without fast clear 2016-10-24 11:03:09 +10:00
compiler glsl: add matrix layout information to interface block types 2016-10-24 15:49:53 +02:00
egl egl: add check that eglCreateContext gets a valid config 2016-10-25 07:24:11 +03:00
gallium gallium/stapi: fix comment for st_visual::buffer_mask 2016-10-24 17:22:00 -07:00
gbm loader: remove loader_get_driver_for_fd() driver_type 2016-10-18 17:06:29 +01:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx loader: remove loader_get_driver_for_fd() driver_type 2016-10-18 17:06:29 +01:00
gtest Introduce .editorconfig 2016-08-31 17:06:54 -07:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel isl/format: Correct ASTC entries of format info table 2016-10-24 15:51:57 -07:00
loader loader: cleanup copyright section 2016-10-18 17:06:32 +01:00
mapi mapi: automake: set VISIBILITY_CFLAGS for shared glapi 2016-10-24 11:29:23 +01:00
mesa mesa: fix error handling in DrawBuffers 2016-10-25 08:04:11 +03:00
util util: Include string.h in bitscan.h. 2016-10-20 14:54:28 -07:00
vulkan/wsi wsi/wayland: fix error path 2016-10-20 10:53:59 +10:00
Makefile.am anv: move to using shared wsi code 2016-10-19 10:15:43 +10:00
SConscript scons: put the generated git_sha1.h file in top-level src/ directory 2016-06-17 10:33:00 -06:00