glsl: Add a has_shader_io_blocks helper
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 11 May 2016 21:03:40 +0000 (14:03 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 26 May 2016 23:24:25 +0000 (16:24 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/glsl/glsl_parser_extras.h

index d70a31b32b53662f1662e99cfb545c24d2189740..a0c19033ac66771d4ed672332a7fe5c945787843 100644 (file)
@@ -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);