glsl: add helper to check for enhanced layouts support
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 27 Oct 2015 20:42:49 +0000 (07:42 +1100)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Wed, 11 Nov 2015 23:18:14 +0000 (10:18 +1100)
Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk>
src/glsl/glsl_parser_extras.h

index 684b917afa00bba6a43570fa0e28da6b549173ba..1d8c1b8799f640c590b978656fa6f6d2039ce355 100644 (file)
@@ -209,6 +209,11 @@ struct _mesa_glsl_parse_state {
       return ARB_shader_atomic_counters_enable || is_version(420, 310);
    }
 
+   bool has_enhanced_layouts() const
+   {
+      return ARB_enhanced_layouts_enable || is_version(440, 0);
+   }
+
    bool has_explicit_attrib_stream() const
    {
       return ARB_gpu_shader5_enable || is_version(400, 0);