summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/glcpp
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2016-02-19 13:23:10 -0500
committerIlia Mirkin <imirkin@alum.mit.edu>2016-03-30 22:57:17 -0400
commit5283e810157a3c392c9887e51c6ee0df849a4973 (patch)
treeca9a14687461a553bc8763163f75b75afb95adae /src/compiler/glsl/glcpp
parent6a8ca859f913cf56bc8abce6d1cde02b36a74289 (diff)
downloadexternal_mesa3d-5283e810157a3c392c9887e51c6ee0df849a4973.zip
external_mesa3d-5283e810157a3c392c9887e51c6ee0df849a4973.tar.gz
external_mesa3d-5283e810157a3c392c9887e51c6ee0df849a4973.tar.bz2
glsl: add GL_OES_sample_variables support
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/compiler/glsl/glcpp')
-rw-r--r--src/compiler/glsl/glcpp/glcpp-parse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/glsl/glcpp/glcpp-parse.y b/src/compiler/glsl/glcpp/glcpp-parse.y
index fbbf85b..14d2c7d 100644
--- a/src/compiler/glsl/glcpp/glcpp-parse.y
+++ b/src/compiler/glsl/glcpp/glcpp-parse.y
@@ -2371,6 +2371,8 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio
if (extensions != NULL) {
if (extensions->OES_EGL_image_external)
add_builtin_define(parser, "GL_OES_EGL_image_external", 1);
+ if (extensions->OES_sample_variables)
+ add_builtin_define(parser, "GL_OES_sample_variables", 1);
if (extensions->OES_standard_derivatives)
add_builtin_define(parser, "GL_OES_standard_derivatives", 1);
if (extensions->ARB_texture_multisample)