diff options
author | Chris Forbes <chrisf@ijw.co.nz> | 2014-08-10 21:31:06 +1200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-07-23 17:25:15 +1000 |
commit | cc172fddf3fc37991c6d85f2d8e4f6dc63a62809 (patch) | |
tree | d277beaaafeabdbfeea4300cba6afc1aa64cda5f /src/glsl/glcpp | |
parent | 25d6f56c08801909e784f81e9b9ced48977630f4 (diff) | |
download | external_mesa3d-cc172fddf3fc37991c6d85f2d8e4f6dc63a62809.zip external_mesa3d-cc172fddf3fc37991c6d85f2d8e4f6dc63a62809.tar.gz external_mesa3d-cc172fddf3fc37991c6d85f2d8e4f6dc63a62809.tar.bz2 |
glsl: Add extension plumbing and define for ARB_shader_subroutine
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/glsl/glcpp')
-rw-r--r-- | src/glsl/glcpp/glcpp-parse.y | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index 4236fb3..7ef4dfd 100644 --- a/src/glsl/glcpp/glcpp-parse.y +++ b/src/glsl/glcpp/glcpp-parse.y @@ -2489,6 +2489,9 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio if (extensions->ARB_tessellation_shader) add_builtin_define(parser, "GL_ARB_tessellation_shader", 1); + + if (extensions->ARB_shader_subroutine) + add_builtin_define(parser, "GL_ARB_shader_subroutine", 1); } } |