From: Ian Romanick Date: Wed, 18 Jun 2014 22:22:25 +0000 (-0700) Subject: glsl_to_tgsi: Constify mesa_sysval_to_semantic X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c887ae6e24d00b661e912d35fb07fc70ff452f1;p=mesa.git glsl_to_tgsi: Constify mesa_sysval_to_semantic Signed-off-by: Ian Romanick Reviewed-by: Marek Olšák Reviewed-by: Roland Scheidegger --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index c5e2eb58408..101c9f91c16 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -4238,7 +4238,7 @@ struct st_translate { }; /** Map Mesa's SYSTEM_VALUE_x to TGSI_SEMANTIC_x */ -static unsigned mesa_sysval_to_semantic[SYSTEM_VALUE_MAX] = { +static const unsigned mesa_sysval_to_semantic[SYSTEM_VALUE_MAX] = { TGSI_SEMANTIC_FACE, TGSI_SEMANTIC_VERTEXID, TGSI_SEMANTIC_INSTANCEID,