diff options
author | Dave Airlie <airlied@itt42.(none)> | 2009-06-18 04:08:33 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-06-18 19:03:48 -0400 |
commit | 00fa28ae29f70c9f26023f9922c4d2e1ca1297e3 (patch) | |
tree | 1f830056eaa5238ea294b7384a443c491ec00937 /drivers/gpu | |
parent | 87ef92092fd092936535ba057ee19b97bb6a709a (diff) |
drm/radeon: this VRAM vs aperture test is wrong, just remove it.
Its quite valid to have VRAM < aperture size.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/r100.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index 5225f5be7ea7..8f41f701f0b7 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c | |||
@@ -1267,12 +1267,6 @@ void r100_vram_info(struct radeon_device *rdev) | |||
1267 | 1267 | ||
1268 | rdev->mc.aper_base = drm_get_resource_start(rdev->ddev, 0); | 1268 | rdev->mc.aper_base = drm_get_resource_start(rdev->ddev, 0); |
1269 | rdev->mc.aper_size = drm_get_resource_len(rdev->ddev, 0); | 1269 | rdev->mc.aper_size = drm_get_resource_len(rdev->ddev, 0); |
1270 | if (rdev->mc.aper_size > rdev->mc.vram_size) { | ||
1271 | /* Why does some hw doesn't have CONFIG_MEMSIZE properly | ||
1272 | * setup ? */ | ||
1273 | rdev->mc.vram_size = rdev->mc.aper_size; | ||
1274 | WREG32(RADEON_CONFIG_MEMSIZE, rdev->mc.vram_size); | ||
1275 | } | ||
1276 | } | 1270 | } |
1277 | 1271 | ||
1278 | 1272 | ||