From 361a9eb953aaa38f8ebc057185de29e50f9eef26 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 21 Sep 2005 10:27:53 +0000 Subject: - 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. --- exa/exa_priv.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'exa/exa_priv.h') 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 -- cgit v1.2.3