From 53ba7f5771b0b53fb0d3bc29d64bdd3813756d10 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Tue, 11 Mar 2008 19:12:40 -0400 Subject: RADEON: fix vblank interrupts after VT switch or suspend/resume --- src/radeon_driver.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/radeon_driver.c b/src/radeon_driver.c index de81b2d5..42324b13 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -5208,6 +5208,11 @@ Bool RADEONEnterVT(int scrnIndex, int flags) pScrn->vtSema = TRUE; + RADEONRestoreSurfaces(pScrn, info->ModeReg); + + if (!xf86SetDesiredModes(pScrn)) + return FALSE; + #ifdef XF86DRI if (info->directRenderingEnabled) { if (info->cardType == CARD_PCIE && @@ -5226,10 +5231,6 @@ Bool RADEONEnterVT(int scrnIndex, int flags) #endif RADEONRestoreMemMapRegisters(pScrn, info->ModeReg); - RADEONRestoreSurfaces(pScrn, info->ModeReg); - - if (!xf86SetDesiredModes(pScrn)) - return FALSE; /* this will get XVideo going again, but only if XVideo was initialised during server startup (hence the info->adaptor if). */ -- cgit v1.2.3