From: Kenneth Graunke Date: Mon, 22 Aug 2016 23:39:14 +0000 (-0700) Subject: glsl: Mark tessellation qualifier maps static const. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb1a0ddfd55ba606eb67fab2aaf337007acce904;p=mesa.git glsl: Mark tessellation qualifier maps static const. Signed-off-by: Kenneth Graunke Reviewed-by: Ilia Mirkin --- diff --git a/src/compiler/glsl/glsl_parser.yy b/src/compiler/glsl/glsl_parser.yy index 4f4a83cd8d0..5b6586141d8 100644 --- a/src/compiler/glsl/glsl_parser.yy +++ b/src/compiler/glsl/glsl_parser.yy @@ -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[] = {