mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
Modified:
programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c
Properly configure fbLocation and related registers for R300 cards. (Dave
Airlie)
This commit is contained in:
@@ -2224,21 +2224,6 @@ RADEONSetFBLocation(ScrnInfoPtr pScrn)
|
||||
* we just hardcode these values for now.
|
||||
* Need to revisit this whole function!!!
|
||||
*/
|
||||
if (IS_R300_VARIANT) {
|
||||
info->fbLocation = 0;
|
||||
|
||||
if (!info->IsSecondary) {
|
||||
RADEONWaitForIdleMMIO(pScrn);
|
||||
OUTREG (RADEON_MC_FB_LOCATION, (INREG(RADEON_CONFIG_MEMSIZE) - 1) & 0xffff0000);
|
||||
OUTREG(RADEON_DISPLAY_BASE_ADDR, info->fbLocation);
|
||||
OUTREG(RADEON_DISPLAY2_BASE_ADDR, info->fbLocation);
|
||||
OUTREG(RADEON_OV0_BASE_ADDR, info->fbLocation);
|
||||
}
|
||||
OUTREG (RADEON_BUS_CNTL, bus_cntl);
|
||||
RADEONWaitForIdleMMIO(pScrn);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (info->IsIGP) {
|
||||
mc_fb_location = INREG(RADEON_NB_TOM);
|
||||
|
||||
Reference in New Issue
Block a user