summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Airlie <airlied@asimov.stargames.com.au>2007-04-11 17:13:57 +1000
committerDavid Airlie <airlied@asimov.stargames.com.au>2007-04-11 17:13:57 +1000
commit1147fefed8d1154482c9cc9a9785e6871cd6e6a1 (patch)
treeed5e8a0cac349df8c551634a6cd2309412885fe2
parenta6cc6a778f8b2f86300a8ce87441d044fd67f930 (diff)
fixup framebuffer depth
-rw-r--r--linux-core/drm_fb.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/linux-core/drm_fb.c b/linux-core/drm_fb.c
index 1fe3e54b..e404642f 100644
--- a/linux-core/drm_fb.c
+++ b/linux-core/drm_fb.c
@@ -53,8 +53,6 @@ static int drmfb_setcolreg(unsigned regno, unsigned red, unsigned green,
if (regno > 17)
return 1;
- printk(KERN_INFO "Got set col reg %d %d %d %d\n", red, green, blue, regno);
-
if (regno < 16) {
switch (fb->depth) {
case 15:
@@ -118,6 +116,7 @@ int drmfb_probe(struct drm_device *dev, struct drm_framebuffer *fb)
info->fix.smem_len = (8*1024*1024);
info->fix.type = FB_TYPE_PACKED_PIXELS;
info->fix.visual = FB_VISUAL_DIRECTCOLOR;
+ info->fix.accel = FB_ACCEL_NONE;
info->fix.type_aux = 0;
info->fix.mmio_start = 0;
info->fix.mmio_len = 0;
@@ -141,12 +140,18 @@ int drmfb_probe(struct drm_device *dev, struct drm_framebuffer *fb)
info->var.bits_per_pixel = fb->bits_per_pixel;
info->var.xoffset = 0;
info->var.yoffset = 0;
+ info->var.activate = FB_ACTIVATE_NOW;
+ info->var.height = -1;
+ info->var.width = -1;
+ info->var.vmode = FB_VMODE_NONINTERLACED;
+ DRM_DEBUG("fb depth is %d\n", fb->depth);
switch(fb->depth) {
case 8:
case 15:
case 16:
break;
+ default:
case 24:
case 32:
info->var.red.offset = 16;