summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-08-23 12:10:33 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-08-23 12:10:33 +0200
commit7b527054a7c81d1d1dbc79d41b9e53064dab68cb (patch)
tree034051170b607854577f035e7225352fcda4ed5f /src
parentd7ba9f001c0ab645984526afd0e64d1c6a6d654a (diff)
radeon: Restore memmap registers even if only AGP location changed.
Diffstat (limited to 'src')
-rw-r--r--src/radeon_driver.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 1d5cc362..87f14056 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -3982,13 +3982,11 @@ static void RADEONAdjustMemMapRegisters(ScrnInfoPtr pScrn, RADEONSavePtr save)
RADEONInfoPtr info = RADEONPTR(pScrn);
unsigned char *RADEONMMIO = info->MMIO;
CARD32 fb, agp;
- int fb_loc_changed;
fb = INREG(RADEON_MC_FB_LOCATION);
agp = INREG(RADEON_MC_AGP_LOCATION);
- fb_loc_changed = (fb != info->mc_fb_location);
- if (fb_loc_changed || agp != info->mc_agp_location) {
+ if (fb != info->mc_fb_location || agp != info->mc_agp_location) {
xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
"DRI init changed memory map, adjusting ...\n");
xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
@@ -4007,9 +4005,8 @@ static void RADEONAdjustMemMapRegisters(ScrnInfoPtr pScrn, RADEONSavePtr save)
RADEONInitMemMapRegisters(pScrn, save, info);
- /* If MC_FB_LOCATION was changed, adjust the various offsets */
- if (fb_loc_changed)
- RADEONRestoreMemMapRegisters(pScrn, save);
+ /* Adjust the various offsets */
+ RADEONRestoreMemMapRegisters(pScrn, save);
}
#ifdef USE_EXA