[PATCH 1/6] present: Move DebugPresent macro to present_priv.h

Keith Packard keithp at keithp.com
Wed Aug 6 22:21:02 PDT 2014


This lets us use the macro in other files

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 present/present.c      | 6 ------
 present/present_priv.h | 6 ++++++
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/present/present.c b/present/present.c
index f488e21..eaaaa8e 100644
--- a/present/present.c
+++ b/present/present.c
@@ -36,12 +36,6 @@ static uint64_t         present_event_id;
 static struct xorg_list present_exec_queue;
 static struct xorg_list present_flip_queue;
 
-#if 0
-#define DebugPresent(x) ErrorF x
-#else
-#define DebugPresent(x)
-#endif
-
 static void
 present_execute(present_vblank_ptr vblank, uint64_t ust, uint64_t crtc_msc);
 
diff --git a/present/present_priv.h b/present/present_priv.h
index f5c1652..1542726 100644
--- a/present/present_priv.h
+++ b/present/present_priv.h
@@ -97,6 +97,12 @@ typedef struct present_screen_priv {
     present_screen_info_ptr     info;
 } present_screen_priv_rec, *present_screen_priv_ptr;
 
+#if 0
+#define DebugPresent(x) ErrorF x
+#else
+#define DebugPresent(x)
+#endif
+
 #define wrap(priv,real,mem,func) {\
     priv->mem = real->mem; \
     real->mem = func; \
-- 
2.0.1



More information about the xorg-devel mailing list