summaryrefslogtreecommitdiff
path: root/src/i830_dri.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2006-08-30 19:45:33 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2006-09-27 15:06:07 +0200
commit06c5f7bd076e9ba4b925e061a40b837714bc8267 (patch)
treea8dc2da06127af44627d20e907985986457e640a /src/i830_dri.c
parent89cbc6e215a5f313ccc17370424c35630cf75892 (diff)
If the DRM can handle it, enable vertical blank interrupts for both pipes.
Diffstat (limited to 'src/i830_dri.c')
-rw-r--r--src/i830_dri.c9
1 files 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;