ir_to_mesa: make some global variable static
authorDave Airlie <airlied@gmail.com>
Sat, 15 Sep 2012 03:00:35 +0000 (13:00 +1000)
committerDave Airlie <airlied@gmail.com>
Sat, 15 Sep 2012 08:02:20 +0000 (18:02 +1000)
nothing outside this file uses these.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/program/ir_to_mesa.cpp

index c9c6db1c73aca01268c5c2b25371b437852e524c..4991a551cabb6c80d12ba2461bbea18e9c1e85c5 100644 (file)
@@ -325,11 +325,11 @@ public:
    void *mem_ctx;
 };
 
-src_reg undef_src = src_reg(PROGRAM_UNDEFINED, 0, NULL);
+static src_reg undef_src = src_reg(PROGRAM_UNDEFINED, 0, NULL);
 
-dst_reg undef_dst = dst_reg(PROGRAM_UNDEFINED, SWIZZLE_NOOP);
+static dst_reg undef_dst = dst_reg(PROGRAM_UNDEFINED, SWIZZLE_NOOP);
 
-dst_reg address_reg = dst_reg(PROGRAM_ADDRESS, WRITEMASK_X);
+static dst_reg address_reg = dst_reg(PROGRAM_ADDRESS, WRITEMASK_X);
 
 static int
 swizzle_for_size(int size)