Mesa (master): glsl: make tex_opcode_strs static

Dave Airlie airlied at kemper.freedesktop.org
Sat Sep 15 08:04:41 UTC 2012


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

Author: Dave Airlie <airlied at gmail.com>
Date:   Sat Sep 15 13:14:02 2012 +1000

glsl: make tex_opcode_strs static

No reason for this to be global from what I can see

Reviewed-by: Matt Turner <mattst88 at gmail.com>
Acked-by: Kenneth Graunke <kenneth at whitecape.org>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/glsl/ir.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index f59cdd2..1c7aada 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -1282,7 +1282,7 @@ ir_dereference::is_lvalue() const
 }
 
 
-const char *tex_opcode_strs[] = { "tex", "txb", "txl", "txd", "txf", "txs" };
+static const char *tex_opcode_strs[] = { "tex", "txb", "txl", "txd", "txf", "txs" };
 
 const char *ir_texture::opcode_string()
 {




More information about the mesa-commit mailing list