Mesa (master): st/glsl_to_tgsi: make undef_src and undef_dst const

Nicolai Hähnle nh at kemper.freedesktop.org
Fri Apr 28 09:34:12 UTC 2017


Module: Mesa
Branch: master
Commit: 28ec0fc7b823ea3dfdd58a0093a69f78c19ac881
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=28ec0fc7b823ea3dfdd58a0093a69f78c19ac881

Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Wed Apr 19 10:05:33 2017 +0200

st/glsl_to_tgsi: make undef_src and undef_dst const

---

 src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index b9204f0f4f..0f8688a41c 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -346,8 +346,8 @@ public:
    int type; /**< GL_DOUBLE, GL_FLOAT, GL_INT, GL_BOOL, or GL_UNSIGNED_INT */
 };
 
-static st_src_reg undef_src = st_src_reg(PROGRAM_UNDEFINED, 0, GLSL_TYPE_ERROR);
-static st_dst_reg undef_dst = st_dst_reg(PROGRAM_UNDEFINED, SWIZZLE_NOOP, GLSL_TYPE_ERROR);
+static const st_src_reg undef_src = st_src_reg(PROGRAM_UNDEFINED, 0, GLSL_TYPE_ERROR);
+static const st_dst_reg undef_dst = st_dst_reg(PROGRAM_UNDEFINED, SWIZZLE_NOOP, GLSL_TYPE_ERROR);
 
 struct inout_decl {
    unsigned mesa_index;




More information about the mesa-commit mailing list