diff options
author | Chia-I Wu <[email protected]> | 2014-04-22 16:58:16 +0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-05-02 10:50:14 -0700 |
commit | 267e28bb62bb7ca2ebffc9a713bd5fa5fbd78ac7 (patch) | |
tree | 820373d474f47b0ba87c73a448d751f3e081bba0 /src/glsl/ir.cpp | |
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 <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/glsl/ir.cpp')
-rw-r--r-- | src/glsl/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp index 1a18b47f790..ba8a8394f59 100644 --- a/src/glsl/ir.cpp +++ b/src/glsl/ir.cpp @@ -1333,7 +1333,7 @@ ir_dereference::is_lvalue() const } -static const char *tex_opcode_strs[] = { "tex", "txb", "txl", "txd", "txf", "txf_ms", "txs", "lod", "tg4", "query_levels" }; +static const char * const tex_opcode_strs[] = { "tex", "txb", "txl", "txd", "txf", "txf_ms", "txs", "lod", "tg4", "query_levels" }; const char *ir_texture::opcode_string() { |