summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/glcpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2016-05-11 13:05:22 -0700
committerIan Romanick <[email protected]>2016-05-26 16:24:25 -0700
commitf0902ee813c7939e114d3adca3baa9ca13eed6ce (patch)
tree2e69094c4bc70999392ec1e913a7686ceceadfbe /src/compiler/glsl/glcpp
parent326a269c7778e2921d48e5d1d2a3683331a1173d (diff)
mesa: Add extension tracking for GL_OES_shader_io_blocks
v2: Also support GL_EXT_shader_io_blocks. It's pretty much identical to the OES extension. Suggested by Ilia. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glcpp')
-rw-r--r--src/compiler/glsl/glcpp/glcpp-parse.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/glsl/glcpp/glcpp-parse.y b/src/compiler/glsl/glcpp/glcpp-parse.y
index ee0d8f1942f..402272796d0 100644
--- a/src/compiler/glsl/glcpp/glcpp-parse.y
+++ b/src/compiler/glsl/glcpp/glcpp-parse.y
@@ -2329,6 +2329,11 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio
add_builtin_define(parser, "GL_EXT_texture_buffer", 1);
add_builtin_define(parser, "GL_OES_texture_buffer", 1);
}
+
+ if (extensions->OES_shader_io_blocks) {
+ add_builtin_define(parser, "GL_EXT_shader_io_blocks", 1);
+ add_builtin_define(parser, "GL_OES_shader_io_blocks", 1);
+ }
}
}
} else {