diff options
author | Dave Airlie <airlied@redhat.com> | 2008-11-03 09:31:17 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-11-03 09:31:17 +1000 |
commit | 653b16f2dd32b5fdbd5f97277edc1c6df66755a9 (patch) | |
tree | 258405327eeecd8117a4f9fbf43a06e13ae59e40 | |
parent | b4803991c8ad8596786f8cf1cffc6417c8ce446a (diff) |
radeon: fix accessible VRAM sizing
-rw-r--r-- | linux-core/radeon_gem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-core/radeon_gem.c b/linux-core/radeon_gem.c index 5e2ad98b..5ecd8c55 100644 --- a/linux-core/radeon_gem.c +++ b/linux-core/radeon_gem.c @@ -585,6 +585,9 @@ void radeon_vram_setup(struct drm_device *dev) if (accessible > bar_size) accessible = bar_size; + if (accessible > vram) + accessible = vram; + DRM_INFO("Detected VRAM RAM=%dK, accessible=%uK, BAR=%uK\n", vram, accessible, bar_size); |