summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-09-30 19:20:17 -0400
committerAlex Deucher <alexdeucher@gmail.com>2010-09-30 19:20:17 -0400
commit886febc882053e09294225e85b102f965041b62b (patch)
tree31f38bf5b43968c7c7bb37b80a8ade1bae06116c
parent16589b862feb796e15dc6e471d25604a4f5e7c1c (diff)
r6xx: fix bad mask when setting up HDP_NONSURFACE_BASE
This fails for MC addresses >32 bits
-rw-r--r--src/radeon_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 2b7be55c..7d6c32d7 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -3996,7 +3996,7 @@ void RADEONRestoreMemMapRegisters(ScrnInfoPtr pScrn,
restore->mc_agp_location,
restore->mc_agp_location_hi);
- OUTREG(R600_HDP_NONSURFACE_BASE, (restore->mc_fb_location << 16) & 0xff0000);
+ OUTREG(R600_HDP_NONSURFACE_BASE, (restore->mc_fb_location & 0xffff) << 16);
}
} else if (IS_AVIVO_VARIANT) {