diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2006-08-30 19:45:33 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2006-09-27 15:06:07 +0200 |
commit | 06c5f7bd076e9ba4b925e061a40b837714bc8267 (patch) | |
tree | a8dc2da06127af44627d20e907985986457e640a /src/i830_dri.c | |
parent | 89cbc6e215a5f313ccc17370424c35630cf75892 (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.c | 9 |
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; |