[Mesa-dev] [PATCH 08/10] glsl: Add a has_shader_io_blocks helper

Ian Romanick idr at freedesktop.org
Fri May 20 07:26:03 UTC 2016


From: Ian Romanick <ian.d.romanick at intel.com>

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/compiler/glsl/glsl_parser_extras.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/compiler/glsl/glsl_parser_extras.h b/src/compiler/glsl/glsl_parser_extras.h
index ed60c55..2d4049f 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);
-- 
2.5.5



More information about the mesa-dev mailing list