summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Simmons <jsimmons@infradead.org>2012-06-10 15:13:23 -0400
committerJames Simmons <jsimmons@infradead.org>2012-06-10 15:13:23 -0400
commit06495f952f23739eb540d78200f3653cb470c6f4 (patch)
treebe493cd3a602a5b5206e8a100603238eb60804f7
parente7c3780b49d4c6c309a9ea11ef5961bf0bb2aa16 (diff)
The EXA corruptions people are reporting appear to go away when you set the MigrationHeuristic to greedy which means all pixmaps have their buffers pushed to the frame buffer. We force enable it as a work around. Some day it will go away
-rw-r--r--src/via_exa.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/via_exa.c b/src/via_exa.c
index 2f6b77f..dac9794 100644
--- a/src/via_exa.c
+++ b/src/via_exa.c
@@ -771,6 +771,8 @@ viaExaTexUploadToScreen(PixmapPtr pDst, int x, int y, int w, int h, char *src,
return TRUE;
}
+#define EXAOPT_MIGRATION_HEURISTIC 0
+
Bool
viaInitExa(ScreenPtr pScreen)
{
@@ -895,6 +897,10 @@ viaInitExa(ScreenPtr pScreen)
"[EXA] Disabling EXA accelerated composite.\n");
}
+ /* Evil hack that will go away */
+ if (!xf86GetOptValString(pScrn->options, EXAOPT_MIGRATION_HEURISTIC))
+ xf86ReplaceStrOption(pScrn->options, "MigrationHeuristic", "greedy");
+
if (!exaDriverInit(pScreen, pExa)) {
free(pExa);
return FALSE;