summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/radeon_dri.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/radeon_dri.c b/src/radeon_dri.c
index 97ed357f..1b17e2ef 100644
--- a/src/radeon_dri.c
+++ b/src/radeon_dri.c
@@ -1679,6 +1679,9 @@ Bool RADEONDRIFinishScreenInit(ScreenPtr pScreen)
info->DRICloseScreen = pScreen->CloseScreen;
pScreen->CloseScreen = RADEONDRIDoCloseScreen;
+ /* disable vblank at startup */
+ RADEONDRISetVBlankInterrupt (pScrn, FALSE);
+
return TRUE;
}
@@ -1756,6 +1759,7 @@ void RADEONDRICloseScreen(ScreenPtr pScreen)
"RADEONDRICloseScreen\n");
if (info->irq) {
+ RADEONDRISetVBlankInterrupt (pScrn, FALSE);
drmCtlUninstHandler(info->drmFD);
info->irq = 0;
info->ModeReg.gen_int_cntl = 0;