diff options
author | Chris Forbes <[email protected]> | 2014-08-10 21:31:06 +1200 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2015-07-23 17:25:15 +1000 |
commit | cc172fddf3fc37991c6d85f2d8e4f6dc63a62809 (patch) | |
tree | d277beaaafeabdbfeea4300cba6afc1aa64cda5f /src/glsl/glcpp | |
parent | 25d6f56c08801909e784f81e9b9ced48977630f4 (diff) |
glsl: Add extension plumbing and define for ARB_shader_subroutine
Reviewed-by: Tapani Pälli <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Signed-off-by: Chris Forbes <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
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 4236fb319d3..7ef4dfd5316 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); } } |