diff options
author | Alex Deucher <alex@cube.(none)> | 2008-03-11 19:12:40 -0400 |
---|---|---|
committer | Alex Deucher <alex@cube.(none)> | 2008-03-11 19:12:40 -0400 |
commit | 53ba7f5771b0b53fb0d3bc29d64bdd3813756d10 (patch) | |
tree | e3d27b58ce78507c54c66aa2eb2bb002ce12933c /src | |
parent | e946c097f0438afbea6f3dd37ee39d67d415708c (diff) |
RADEON: fix vblank interrupts after VT switch or suspend/resume
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_driver.c | 9 |
1 files 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). */ |