mesa/glsl/glapi: enable GL_EXT_draw_buffers extension
authorTapani Pälli <tapani.palli@intel.com>
Tue, 25 Nov 2014 11:10:30 +0000 (06:10 -0500)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 14 Jan 2015 05:48:51 +0000 (07:48 +0200)
commitf52fe39d311f3b1988edaeb4765279bbe337b1b7
treef2ddf1b2cff26f9ee99234018aef0e041daca760
parent3a5c7e47fdcfb3e322c0756e960cbcf8403e4230
mesa/glsl/glapi: enable GL_EXT_draw_buffers extension

Patch enables ES2 extension that utilizes existing ES3 functionality.

Changes make all the subtests to run and pass in WebGL conformance
test 'webgl-draw-buffers' when running Chrome on OpenGL ES, also
Piglit test 'draw_buffers_gles2' passes.

v2: remove unused boolean (Ilia Mirkin)
v3: proper error checking for invalid values (Chad Versace)
v4: run error check explicitly for ES2 and ES3 (Kenneth Graunke)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
src/glsl/glcpp/glcpp-parse.y
src/glsl/glsl_parser_extras.cpp
src/glsl/glsl_parser_extras.h
src/mapi/glapi/gen/es_EXT.xml
src/mesa/main/buffers.c
src/mesa/main/extensions.c