diff options
author | Alex Deucher <alex@botch2.com> | 2008-04-03 22:35:16 -0400 |
---|---|---|
committer | Alex Deucher <alex@botch2.com> | 2008-04-03 22:35:16 -0400 |
commit | 091963a635b79884afe77c026eabb48972fbe175 (patch) | |
tree | c79c5fc21c226d1ca84c18aef461d5fe5a49eb7b | |
parent | 950e9860643c20acde0eca4e4ff26baacc1f2b69 (diff) |
Minor cleanup
-rw-r--r-- | src/radeon_driver.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 8bb29a6f..9f008d4d 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -5191,11 +5191,11 @@ Bool RADEONEnterVT(int scrnIndex, int flags) RADEONRestoreSurfaces(pScrn, info->ModeReg); #ifdef XF86DRI if (info->directRenderingEnabled) { - if (info->cardType == CARD_PCIE && info->pKernelDRMVersion->version_minor >= 19 && - info->FbSecureSize) - { - /* we need to backup the PCIE GART TABLE from fb memory */ - memcpy(info->FB + info->pciGartOffset, info->pciGartBackup, info->pciGartSize); + if (info->cardType == CARD_PCIE && + info->pKernelDRMVersion->version_minor >= 19 && + info->FbSecureSize) { + /* we need to backup the PCIE GART TABLE from fb memory */ + memcpy(info->FB + info->pciGartOffset, info->pciGartBackup, info->pciGartSize); } /* get the DRI back into shape after resume */ @@ -5220,8 +5220,6 @@ Bool RADEONEnterVT(int scrnIndex, int flags) } #endif - // pScrn->AdjustFrame(scrnIndex, pScrn->frameX0, pScrn->frameY0, 0); - return TRUE; } @@ -5242,8 +5240,9 @@ void RADEONLeaveVT(int scrnIndex, int flags) DRILock(pScrn->pScreen, 0); RADEONCP_STOP(pScrn, info); - if (info->cardType == CARD_PCIE && info->pKernelDRMVersion->version_minor >= 19 && info->FbSecureSize) - { + if (info->cardType == CARD_PCIE && + info->pKernelDRMVersion->version_minor >= 19 && + info->FbSecureSize) { /* we need to backup the PCIE GART TABLE from fb memory */ memcpy(info->pciGartBackup, (info->FB + info->pciGartOffset), info->pciGartSize); } |