summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/glsl_parser.yy
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-08-22 16:39:14 -0700
committerKenneth Graunke <[email protected]>2016-08-23 21:15:59 -0700
commiteb1a0ddfd55ba606eb67fab2aaf337007acce904 (patch)
treeb70dc59ffb1d0e35969d3ece43b58417ee768f7c /src/compiler/glsl/glsl_parser.yy
parent70bc891c42085c7344a70e366d5262533d5c529b (diff)
glsl: Mark tessellation qualifier maps static const.
Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glsl_parser.yy')
-rw-r--r--src/compiler/glsl/glsl_parser.yy4
1 files changed, 2 insertions, 2 deletions
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[] = {