Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174597
b: refs/heads/master
c: 4738115
h: refs/heads/master
i:
  174595: 25d3623
v: v3
  • Loading branch information
Dave Airlie committed Dec 2, 2009
1 parent ed41f10 commit 94a6488
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f3b6a45f0805690269a7a9d265cbbc2f15b6c6e
refs/heads/master: 47381156a8f0d793bacfa346cc4cc515399525f7
9 changes: 8 additions & 1 deletion trunk/drivers/gpu/drm/radeon/radeon_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,14 @@ int radeon_parse_options(char *options)

int radeonfb_probe(struct drm_device *dev)
{
return drm_fb_helper_single_fb_probe(dev, 32, &radeonfb_create);
struct radeon_device *rdev = dev->dev_private;
int bpp_sel = 32;

/* select 8 bpp console on RN50 or 16MB cards */
if (ASIC_IS_RN50(rdev) || rdev->mc.real_vram_size <= (32*1024*1024))
bpp_sel = 8;

return drm_fb_helper_single_fb_probe(dev, bpp_sel, &radeonfb_create);
}

int radeonfb_remove(struct drm_device *dev, struct drm_framebuffer *fb)
Expand Down

0 comments on commit 94a6488

Please sign in to comment.