summaryrefslogtreecommitdiff
path: root/uxa/uxa-priv.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-02-10 15:35:20 -0800
committerEric Anholt <eric@anholt.net>2009-02-10 15:35:20 -0800
commit5212ec6515c6562f66b86fc16928b601bf04e49b (patch)
tree576328595abb84a842691f5560429276b0ce5f0f /uxa/uxa-priv.h
parent3aa8591abfbe8db0f13912910c850fdd748808df (diff)
uxa: hook up the fallback debug to the driver's fallback debug option.
Diffstat (limited to 'uxa/uxa-priv.h')
-rw-r--r--uxa/uxa-priv.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/uxa/uxa-priv.h b/uxa/uxa-priv.h
index f4b3ceef..463749a7 100644
--- a/uxa/uxa-priv.h
+++ b/uxa/uxa-priv.h
@@ -67,18 +67,14 @@
#define DEBUG_OFFSCREEN 0
#define DEBUG_GLYPH_CACHE 0
-#if DEBUG_TRACE_FALL
#define UXA_FALLBACK(x) \
-do { \
+if (uxa_get_screen(screen)->fallback_debug) { \
ErrorF("UXA fallback at %s: ", __FUNCTION__); \
ErrorF x; \
} while (0)
char
uxa_drawable_location(DrawablePtr pDrawable);
-#else
-#define UXA_FALLBACK(x)
-#endif
#if DEBUG_PIXMAP
#define DBG_PIXMAP(a) ErrorF a
@@ -139,6 +135,7 @@ typedef struct {
#endif
EnableDisableFBAccessProcPtr SavedEnableDisableFBAccess;
+ Bool fallback_debug;
Bool swappedOut;
unsigned disableFbCount;
unsigned offScreenCounter;