diff options
author | Roland Mainz <roland.mainz@nrubsig.org> | 2004-12-17 00:13:18 +0000 |
---|---|---|
committer | Roland Mainz <roland.mainz@nrubsig.org> | 2004-12-17 00:13:18 +0000 |
commit | 7123be74ba4afbe7b7999c69e988ef27ce2a6f0f (patch) | |
tree | a75848e4f7b682ac03bbad862135b26dcf0eb238 | |
parent | b7f6949366af2652442b211338e117a3fbfb9245 (diff) |
//bugs.freedesktop.org/show_bug.cgi?id=1220) attachment #980XORG-6_8_1_902XORG-6_8_1_901
(https://bugs.freedesktop.org/attachment.cgi?id=980): Fix garbage
screen on radeon cards which may appear after a system suspend/resume
cycle. Patch by Matthias Hopf <mhopf@suse.de>
-rw-r--r-- | src/radeon_driver.c | 11 | ||||
-rw-r--r-- | src/radeon_reg.h | 2 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 8bf3646..b9a6a3a 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -4495,10 +4495,12 @@ Bool RADEONScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) RADEONSave(pScrn); - if (xf86ReturnOptValBool(info->Options, OPTION_DYNAMIC_CLOCKS, FALSE)) { - RADEONSetDynamicClock(pScrn, 1); - } else { - RADEONSetDynamicClock(pScrn, 0); + if ((!info->IsSecondary) && info->IsMobility) { + if (xf86ReturnOptValBool(info->Options, OPTION_DYNAMIC_CLOCKS, FALSE)) { + RADEONSetDynamicClock(pScrn, 1); + } else { + RADEONSetDynamicClock(pScrn, 0); + } } if (info->FBDev) { @@ -7157,6 +7159,7 @@ void RADEONAdjustFrame(int scrnIndex, int x, int y, int flags) RADEONDoAdjustFrame(pScrn, x, y, FALSE); } + RADEONSetFBLocation (pScrn); #ifdef XF86DRI if (info->CPStarted) DRIUnlock(pScrn->pScreen); #endif diff --git a/src/radeon_reg.h b/src/radeon_reg.h index 8849cab..b56630c 100644 --- a/src/radeon_reg.h +++ b/src/radeon_reg.h @@ -803,7 +803,7 @@ # define RADEON_MC_MCLK_MAX_DYN_STOP_LAT (1<<12) # define RADEON_IO_MCLK_MAX_DYN_STOP_LAT (1<<13) # define RADEON_MC_MCLK_DYN_ENABLE (1 << 14) -# define RADEON_IO_MCLK_DYN_ENABLE (1 << 14) +# define RADEON_IO_MCLK_DYN_ENABLE (1 << 15) #define RADEON_MDGPIO_A_REG 0x01ac #define RADEON_MDGPIO_EN_REG 0x01b0 #define RADEON_MDGPIO_MASK 0x0198 |