diff options
author | James Simmons <jsimmons@infradead.org> | 2010-12-23 19:40:37 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-01-07 06:44:40 +0300 |
commit | dfe63bb0ad9810db13aab0058caba97866e0a681 (patch) | |
tree | ffc5e9335283001c072aa0377ba9fd92ac3b1919 /drivers/gpu/drm/radeon/radeon_fb.c | |
parent | f598aa7593427ffe3a61e7767c34bd695a5e7ed0 (diff) | |
download | linux-dfe63bb0ad9810db13aab0058caba97866e0a681.tar.xz |
drm: Update fbdev fb_fix_screeninfo
If you change the color depth via fbset or some other framebuffer aware
userland application struct fb_fix_screeninfo is not updated to this new
information. This patch fixes this issue. Also the function is changed to
just pass in struct drm_framebuffer so in the future we could use more
fields. I'm hoping some day fix->smem* could be set here :-)
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_fb.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_fb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c index 66324b5bb5ba..ca32e9c1e91d 100644 --- a/drivers/gpu/drm/radeon/radeon_fb.c +++ b/drivers/gpu/drm/radeon/radeon_fb.c @@ -225,8 +225,6 @@ static int radeonfb_create(struct radeon_fbdev *rfbdev, strcpy(info->fix.id, "radeondrmfb"); - drm_fb_helper_fill_fix(info, fb->pitch, fb->depth); - info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT; info->fbops = &radeonfb_ops; |