diff options
author | Dave Airlie <airlied@linux.ie> | 2009-07-10 14:44:47 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-07-15 03:13:19 -0400 |
commit | 2a0f8918fc34713ecaeb900ffb9afa61df4cb08e (patch) | |
tree | 672d6e6788cd0f4100b912aa7029fa38c513a23c /drivers/gpu/drm/radeon/r520.c | |
parent | ad49f501867cba87e1e45e5ebae0b12435d68bf1 (diff) |
drm/radeon/kms: fix VRAM sizing like DDX does it.
Doing this like the DDX seems like the most sure fire way to avoid
having to reinvent it slowly and painfully. At the moment we keep
getting things wrong with aper vs vram, so we know the DDX does it right.
booted on PCI r100, PCIE rv370, IGP rs400.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r520.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r520.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/r520.c b/drivers/gpu/drm/radeon/r520.c index 570a244bd88b..b6bd3758db6b 100644 --- a/drivers/gpu/drm/radeon/r520.c +++ b/drivers/gpu/drm/radeon/r520.c | |||
@@ -227,8 +227,6 @@ static void r520_vram_get_type(struct radeon_device *rdev) | |||
227 | void r520_vram_info(struct radeon_device *rdev) | 227 | void r520_vram_info(struct radeon_device *rdev) |
228 | { | 228 | { |
229 | r520_vram_get_type(rdev); | 229 | r520_vram_get_type(rdev); |
230 | rdev->mc.vram_size = RREG32(RADEON_CONFIG_MEMSIZE); | ||
231 | 230 | ||
232 | rdev->mc.aper_base = drm_get_resource_start(rdev->ddev, 0); | 231 | r100_vram_init_sizes(rdev); |
233 | rdev->mc.aper_size = drm_get_resource_len(rdev->ddev, 0); | ||
234 | } | 232 | } |