summaryrefslogtreecommitdiff
path: root/src/i830_dri.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-03-12 13:03:47 +0100
committerMichel Dänzer <michel@tungstengraphics.com>2007-03-12 13:03:47 +0100
commitfe59ab9f562fd10118563d80eb3351a4d3b48b3f (patch)
treec477520037c346800dc2997e8245afd7430b0278 /src/i830_dri.c
parentba55ff15df974197bebd871e28bb96d817ae41c7 (diff)
Disable page flipping if the DRM is older than 1.9.
Older versions don't support the functionality we need.
Diffstat (limited to 'src/i830_dri.c')
-rw-r--r--src/i830_dri.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c
index 52c30ebd..5a3aec0f 100644
--- a/src/i830_dri.c
+++ b/src/i830_dri.c
@@ -687,6 +687,14 @@ I830DRIScreenInit(ScreenPtr pScreen)
pI830->memory_manager = NULL;
}
}
+#ifdef DAMAGE
+ if (pI830->allowPageFlip && pI830->drmMinor < 9) {
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
+ "DRM version 1.9 or newer required for Page flipping. "
+ "Disabling.\n");
+ pI830->allowPageFlip = FALSE;
+ }
+#endif
drmFreeVersion(version);
}
}