summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Koenig <deathsimple@vodafone.de>2009-02-04 19:24:44 -0500
committerAlex Deucher <alexdeucher@gmail.com>2009-02-04 19:24:44 -0500
commit3317760a365ce2c9f98f94da950671397ce6d773 (patch)
treebdee2d7775db40b81994ddc20f60b4edca7aa333
parente78c9ed1ebd4f9b2fdd12303c19c1fd0f0a3f95f (diff)
Fix RHDDRIGARTBaseGet to work with AGP based card
Remove a check in RHDDRIGARTBaseGet makes AGP based r6xx card working, and also fix a minor debugging output typo.
-rw-r--r--src/rhd_dri.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/rhd_dri.c b/src/rhd_dri.c
index aaabfff..f9828b6 100644
--- a/src/rhd_dri.c
+++ b/src/rhd_dri.c
@@ -1478,12 +1478,6 @@ RHDDRIGARTBaseGet(RHDPtr rhdPtr)
drm_radeon_getparam_t gp;
int gart_base;
- if (rhdPtr->cardType == RHD_CARD_AGP) {
- xf86DrvMsg(rhdPtr->scrnIndex, X_INFO,
- "%s: Unable to get GART address (AGP card).\n", __func__);
- return 0;
- }
-
memset(&gp, 0, sizeof(gp));
gp.param = RADEON_PARAM_GART_BASE;
gp.value = &gart_base;
@@ -1494,7 +1488,7 @@ RHDDRIGARTBaseGet(RHDPtr rhdPtr)
"%s: Failed to determine GART area MC location.\n", __func__);
return 0;
} else {
- RHDDebug(rhdPtr->scrnIndex, "GART location: 0x08X\n", gart_base);
+ RHDDebug(rhdPtr->scrnIndex, "GART location: 0x%08X\n", gart_base);
return gart_base;
}
}