diff options
author | Ian Romanick <[email protected]> | 2016-05-11 14:03:40 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-05-26 16:24:25 -0700 |
commit | 7a3093efcceb22a1d190a4c72a6f3280b2cad5ca (patch) | |
tree | f5b6f4dc472630f899231bbd25489e6460a3c13c /src/compiler | |
parent | f0902ee813c7939e114d3adca3baa9ca13eed6ce (diff) |
glsl: Add a has_shader_io_blocks helper
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')
-rw-r--r-- | src/compiler/glsl/glsl_parser_extras.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/glsl/glsl_parser_extras.h b/src/compiler/glsl/glsl_parser_extras.h index d70a31b32b5..a0c19033ac6 100644 --- a/src/compiler/glsl/glsl_parser_extras.h +++ b/src/compiler/glsl/glsl_parser_extras.h @@ -265,6 +265,13 @@ struct _mesa_glsl_parse_state { return ARB_compute_shader_enable || is_version(430, 310); } + bool has_shader_io_blocks() const + { + return OES_shader_io_blocks_enable || + EXT_shader_io_blocks_enable || + is_version(150, 320); + } + bool has_geometry_shader() const { return OES_geometry_shader_enable || is_version(150, 320); |