glsl: Implicitly enable OES_shader_io_blocks if geom/tess are enabled.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 21 May 2016 18:46:22 +0000 (11:46 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 8 Aug 2016 16:59:03 +0000 (09:59 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/glsl/glsl_parser_extras.h

index 991cfc6ebc91ad54a673ab0741c8595f3ce27816..0294ef79abe9784d1f95fb083fafacf5ad77052d 100644 (file)
@@ -267,8 +267,19 @@ struct _mesa_glsl_parse_state {
 
    bool has_shader_io_blocks() const
    {
+      /* The OES_geometry_shader_specification says:
+       *
+       *    "If the OES_geometry_shader extension is enabled, the
+       *     OES_shader_io_blocks extension is also implicitly enabled."
+       *
+       * The OES_tessellation_shader extension has similar wording.
+       */
       return OES_shader_io_blocks_enable ||
              EXT_shader_io_blocks_enable ||
+             OES_geometry_shader_enable ||
+             OES_tessellation_shader_enable ||
+             EXT_tessellation_shader_enable ||
+
              is_version(150, 320);
    }