summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.cpp
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/ir.cpp
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/ir.cpp')
-rw-r--r--src/glsl/ir.cpp2
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()
{