diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2014-04-22 16:58:16 +0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2014-05-02 10:50:14 -0700 |
commit | 267e28bb62bb7ca2ebffc9a713bd5fa5fbd78ac7 (patch) | |
tree | 820373d474f47b0ba87c73a448d751f3e081bba0 /src/glsl/glsl_parser.yy | |
parent | 6a2d28599f7326d7e40663033d34c32eeb814473 (diff) |
glsl: make static constant variables "static const"
This allows them to be moved to .rodata, and allow us to be sure that they
will not be modified.
Signed-off-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
Diffstat (limited to 'src/glsl/glsl_parser.yy')
-rw-r--r-- | src/glsl/glsl_parser.yy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy index 2d0e7be5489..e3ee16a10c9 100644 --- a/src/glsl/glsl_parser.yy +++ b/src/glsl/glsl_parser.yy @@ -1214,7 +1214,7 @@ layout_qualifier_id: /* Layout qualifiers for GLSL 1.50 geometry shaders. */ if (!$$.flags.i) { - struct { + static const struct { const char *s; GLenum e; } map[] = { @@ -1368,7 +1368,7 @@ layout_qualifier_id: } } - static const char *local_size_qualifiers[3] = { + static const char * const local_size_qualifiers[3] = { "local_size_x", "local_size_y", "local_size_z", |