glsl: make static constant variables "static const"
authorChia-I Wu <olvaffe@gmail.com>
Tue, 22 Apr 2014 08:58:16 +0000 (16:58 +0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 2 May 2014 17:50:14 +0000 (10:50 -0700)
commit267e28bb62bb7ca2ebffc9a713bd5fa5fbd78ac7
tree820373d474f47b0ba87c73a448d751f3e081bba0
parent6a2d28599f7326d7e40663033d34c32eeb814473
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>
src/glsl/builtin_types.cpp
src/glsl/builtin_variables.cpp
src/glsl/glsl_parser.yy
src/glsl/glsl_parser_extras.cpp
src/glsl/ir.cpp
src/mesa/main/uniforms.h