summaryrefslogtreecommitdiff
path: root/src/radeon_dri.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2008-07-21 09:09:02 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2008-07-21 09:09:02 +0200
commitf9034214f070fe3054cd9cefd7034252de234f38 (patch)
treee191c1e641e58c2c7c69d84dec988196d60f3852 /src/radeon_dri.c
parentecb6347a3d7071890600c98c2addef3a8ca260ee (diff)
Call DRM modeset ioctl after the IRQ has been initialized.
This lets the DRM know it can safely disable the vblank interrupts.
Diffstat (limited to 'src/radeon_dri.c')
-rw-r--r--src/radeon_dri.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/radeon_dri.c b/src/radeon_dri.c
index 32181473..a192811f 100644
--- a/src/radeon_dri.c
+++ b/src/radeon_dri.c
@@ -1211,6 +1211,12 @@ static void RADEONDRIIrqInit(RADEONInfoPtr info, ScreenPtr pScreen)
} else {
unsigned char *RADEONMMIO = info->MMIO;
info->ModeReg->gen_int_cntl = INREG( RADEON_GEN_INT_CNTL );
+
+ /* Let the DRM know it can safely disable the vblank interrupts */
+ radeon_crtc_modeset_ioctl(XF86_CRTC_CONFIG_PTR(pScrn)->crtc[0],
+ FALSE);
+ radeon_crtc_modeset_ioctl(XF86_CRTC_CONFIG_PTR(pScrn)->crtc[0],
+ TRUE);
}
}