diff options
author | Dave Airlie <airlied@redhat.com> | 2009-11-17 22:39:34 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-01 20:37:10 -0500 |
commit | 47381156a8f0d793bacfa346cc4cc515399525f7 (patch) | |
tree | 40703bdebbf36e7a0d8c3d5bf0d4ae5422376324 | |
parent | 1f3b6a45f0805690269a7a9d265cbbc2f15b6c6e (diff) |
drm/radeon/kms: pick 8bpp console when 32MB or less VRAM
making the pinned console smaller gives X a bit more room to play with.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_fb.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c index b38c4c8e2c61..cb2f16a0b8ff 100644 --- a/drivers/gpu/drm/radeon/radeon_fb.c +++ b/drivers/gpu/drm/radeon/radeon_fb.c | |||
@@ -321,7 +321,14 @@ int radeon_parse_options(char *options) | |||
321 | 321 | ||
322 | int radeonfb_probe(struct drm_device *dev) | 322 | int radeonfb_probe(struct drm_device *dev) |
323 | { | 323 | { |
324 | return drm_fb_helper_single_fb_probe(dev, 32, &radeonfb_create); | 324 | struct radeon_device *rdev = dev->dev_private; |
325 | int bpp_sel = 32; | ||
326 | |||
327 | /* select 8 bpp console on RN50 or 16MB cards */ | ||
328 | if (ASIC_IS_RN50(rdev) || rdev->mc.real_vram_size <= (32*1024*1024)) | ||
329 | bpp_sel = 8; | ||
330 | |||
331 | return drm_fb_helper_single_fb_probe(dev, bpp_sel, &radeonfb_create); | ||
325 | } | 332 | } |
326 | 333 | ||
327 | int radeonfb_remove(struct drm_device *dev, struct drm_framebuffer *fb) | 334 | int radeonfb_remove(struct drm_device *dev, struct drm_framebuffer *fb) |