glsl: add component to ast_type_qualifier::validate_flags
authorTimothy Arceri <timothy.arceri@collabora.com>
Sat, 30 Jul 2016 04:53:20 +0000 (14:53 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Sat, 30 Jul 2016 23:24:45 +0000 (09:24 +1000)
This was added with ARB_enhanced_layouts.

V2: Add an extra format specifier for the new qualifier.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/ast_type.cpp

index d34d641572ca9bfb7efa1fbcf871a62b229a1b88..1f8fb9ccc625e5a6440de535fc8fcec171e57525 100644 (file)
@@ -612,7 +612,7 @@ ast_type_qualifier::validate_flags(YYLTYPE *loc,
                     "%s:"
                     "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s"
                     "%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s"
-                    "%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
+                    "%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
                     message,
                     bad.flags.q.invariant ? " invariant" : "",
                     bad.flags.q.precise ? " precise" : "",
@@ -633,6 +633,7 @@ ast_type_qualifier::validate_flags(YYLTYPE *loc,
                     bad.flags.q.origin_upper_left ? " origin_upper_left" : "",
                     bad.flags.q.pixel_center_integer ? " pixel_center_integer" : "",
                     bad.flags.q.explicit_align ? " align" : "",
+                    bad.flags.q.explicit_component ? " component" : "",
                     bad.flags.q.explicit_location ? " location" : "",
                     bad.flags.q.explicit_index ? " index" : "",
                     bad.flags.q.explicit_binding ? " binding" : "",