summaryrefslogtreecommitdiff
path: root/exa/exa_priv.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2005-09-21 10:27:53 +0000
committerEric Anholt <anholt@freebsd.org>2005-09-21 10:27:53 +0000
commit361a9eb953aaa38f8ebc057185de29e50f9eef26 (patch)
tree82bf759dc5f2dbac4c21c5bc06629f30f4efd776 /exa/exa_priv.h
parent6a29c4cec156a135d1d9cdb65995f7a84de7cb56 (diff)
- Change migration-in rule slightly: previously, if your score was less
than the max, it was bumped, and then if you were above the threshhold you got moved in. Instead, do the above-threshhold check separate from score starting out less than max. While this will likely make thrashing cases worse, I hope it will fix some issues with long term performance (think of an xcompmgr with a backbuffer it's doing only accelerated operations to. If some new pixmap comes in and bumps it out, even once, it will never get a chance to re-migrate because its score will be maxed). Change migration-out to be the same way for symmetry, though it shouldn't ever affect anything. - Fix a lot of debugging output, both in terms of printing quality, and completeness. The fallback debugging covers a lot more now, pointing out new areas for improvement. Debugging toggles are now centralized in exaPriv.h.
Diffstat (limited to 'exa/exa_priv.h')
-rw-r--r--exa/exa_priv.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/exa/exa_priv.h b/exa/exa_priv.h
index 41938a7d9..ca1cdb110 100644
--- a/exa/exa_priv.h
+++ b/exa/exa_priv.h
@@ -52,6 +52,21 @@
#include "fbpict.h"
#endif
+#define DEBUG_TRACE_FALL 0
+#define DEBUG_MIGRATE 0
+#define DEBUG_PIXMAP 0
+#define DEBUG_OFFSCREEN 0
+
+#if DEBUG_TRACE_FALL
+#define EXA_FALLBACK(x) \
+do { \
+ ErrorF("EXA fallback at %s: ", __FUNCTION__); \
+ ErrorF x; \
+} while (0)
+#else
+#define EXA_FALLBACK(x)
+#endif
+
#ifndef EXA_MAX_FB
#define EXA_MAX_FB FB_OVERLAY_MAX
#endif