Mesa (master): meta: make mem_ctx non-global.

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


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

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

meta: make mem_ctx non-global.

I can't see any external users, and this is a global symbol,

Reviewed-by: Matt Turner <mattst88 at gmail.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/mesa/drivers/common/meta.c |    2 +-
 src/mesa/drivers/common/meta.h |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
index 677548e..ff701ba 100644
--- a/src/mesa/drivers/common/meta.c
+++ b/src/mesa/drivers/common/meta.c
@@ -78,7 +78,7 @@
 #include "main/glformats.h"
 #include "../glsl/ralloc.h"
 
-
+static void *mem_ctx;
 /** Return offset in bytes of the field within a vertex struct */
 #define OFFSET(FIELD) ((void *) offsetof(struct vertex, FIELD))
 
diff --git a/src/mesa/drivers/common/meta.h b/src/mesa/drivers/common/meta.h
index 8a6b33b..d8dfb56 100644
--- a/src/mesa/drivers/common/meta.h
+++ b/src/mesa/drivers/common/meta.h
@@ -58,8 +58,6 @@
 #define MESA_META_MULTISAMPLE          0x100000
 /**\}*/
 
-void *mem_ctx;
-
 extern void
 _mesa_meta_init(struct gl_context *ctx);
 




More information about the mesa-commit mailing list