glsl_to_tgsi: Constify mesa_sysval_to_semantic
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 18 Jun 2014 22:22:25 +0000 (15:22 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 7 Aug 2014 22:19:53 +0000 (15:19 -0700)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index c5e2eb584080441148d2eb62a8508fb4e058eff4..101c9f91c16c74b38d01a11274e10b9b6a123dfb 100644 (file)
@@ -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,