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>
This commit is contained in:
+1
-1
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user