summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser.yy
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-04-22 16:58:16 +0800
committerIan Romanick <[email protected]>2014-05-02 10:50:14 -0700
commit267e28bb62bb7ca2ebffc9a713bd5fa5fbd78ac7 (patch)
tree820373d474f47b0ba87c73a448d751f3e081bba0 /src/glsl/glsl_parser.yy
parent6a2d28599f7326d7e40663033d34c32eeb814473 (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 <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser.yy')
-rw-r--r--src/glsl/glsl_parser.yy4
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",