Mesa (master): ir_to_mesa: make some global variable static
Dave Airlie
airlied at kemper.freedesktop.org
Sat Sep 15 08:04:41 UTC 2012
Module: Mesa
Branch: master
Commit: 0b45bd146ad140ba982c27ba4c50c121a8bafe59
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0b45bd146ad140ba982c27ba4c50c121a8bafe59
Author: Dave Airlie <airlied at gmail.com>
Date: Sat Sep 15 13:00:35 2012 +1000
ir_to_mesa: make some global variable static
nothing outside this file uses these.
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/mesa/program/ir_to_mesa.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index c9c6db1..4991a55 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -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)
More information about the mesa-commit
mailing list