glsl: Mark tessellation qualifier maps static const.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 22 Aug 2016 23:39:14 +0000 (16:39 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 24 Aug 2016 04:15:59 +0000 (21:15 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/compiler/glsl/glsl_parser.yy

index 4f4a83cd8d0e30c235c8bfcd9241e9f407b8b94d..5b6586141d868be21c35f8ebe34995cdcf50e7b2 100644 (file)
@@ -1373,7 +1373,7 @@ layout_qualifier_id:
 
       /* Layout qualifiers for tessellation evaluation shaders. */
       if (!$$.flags.i) {
-         struct {
+         static const struct {
             const char *s;
             GLenum e;
          } map[] = {
@@ -1396,7 +1396,7 @@ layout_qualifier_id:
          }
       }
       if (!$$.flags.i) {
-         struct {
+         static const struct {
             const char *s;
             GLenum e;
          } map[] = {