From 06c5f7bd076e9ba4b925e061a40b837714bc8267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Wed, 30 Aug 2006 19:45:33 +0200 Subject: If the DRM can handle it, enable vertical blank interrupts for both pipes. --- src/i830_dri.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/i830_dri.c b/src/i830_dri.c index 92f8d4a1..21af6518 100644 --- a/src/i830_dri.c +++ b/src/i830_dri.c @@ -1489,9 +1489,12 @@ I830DRISetVBlankInterrupt (ScrnInfoPtr pScrn, Bool on) if (pI830->directRenderingEnabled && pI830->drmMinor >= 5) { if (on) { - if (pI830->planeEnabled[1]) - pipe.pipe = DRM_I830_VBLANK_PIPE_B; - else + if (pI830->planeEnabled[1]) { + if (pI830->drmMinor >= 6) + pipe.pipe = DRM_I830_VBLANK_PIPE_A | DRM_I830_VBLANK_PIPE_B; + else + pipe.pipe = DRM_I830_VBLANK_PIPE_B; + } else pipe.pipe = DRM_I830_VBLANK_PIPE_A; } else { pipe.pipe = 0; -- cgit v1.2.3