From: Ian Romanick Date: Wed, 11 May 2016 21:03:40 +0000 (-0700) Subject: glsl: Add a has_shader_io_blocks helper X-Git-Tag: upstream/17.1.0~9341 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a3093efcceb22a1d190a4c72a6f3280b2cad5ca;p=platform%2Fupstream%2Fmesa.git glsl: Add a has_shader_io_blocks helper Signed-off-by: Ian Romanick Reviewed-by: Timothy Arceri Reviewed-by: Alejandro PiƱeiro --- diff --git a/src/compiler/glsl/glsl_parser_extras.h b/src/compiler/glsl/glsl_parser_extras.h index d70a31b..a0c1903 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);