diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-03-12 13:03:47 +0100 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-03-12 13:03:47 +0100 |
commit | fe59ab9f562fd10118563d80eb3351a4d3b48b3f (patch) | |
tree | c477520037c346800dc2997e8245afd7430b0278 /src/i830_dri.c | |
parent | ba55ff15df974197bebd871e28bb96d817ae41c7 (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.c | 8 |
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); } } |