summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/glcpp-parse.y
diff options
context:
space:
mode:
authorFabian Bieler <[email protected]>2014-03-20 22:41:40 +0100
committerMarek Olšák <[email protected]>2015-07-23 00:59:26 +0200
commit1036b024d4c8ce2376ac41219dfda01d5a59b3ef (patch)
treeda4b0962904769b9c904604689e4527e17036f23 /src/glsl/glcpp/glcpp-parse.y
parent497eb295838baccde1420adfcc4ef7e8fdddd774 (diff)
glsl: add tessellation shader defines and built-in variables.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/glcpp/glcpp-parse.y')
-rw-r--r--src/glsl/glcpp/glcpp-parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y
index ed1bffbde3c..4236fb319d3 100644
--- a/src/glsl/glcpp/glcpp-parse.y
+++ b/src/glsl/glcpp/glcpp-parse.y
@@ -2486,6 +2486,9 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio
if (extensions->ARB_shader_storage_buffer_object)
add_builtin_define(parser, "GL_ARB_shader_storage_buffer_object", 1);
+
+ if (extensions->ARB_tessellation_shader)
+ add_builtin_define(parser, "GL_ARB_tessellation_shader", 1);
}
}