line_length calculation was incorrect.. I now can get fbcon to run
authorDavid Airlie <airlied@asimov.stargames.com.au>
Wed, 11 Apr 2007 07:35:00 +0000 (17:35 +1000)
committerDavid Airlie <airlied@asimov.stargames.com.au>
Wed, 11 Apr 2007 07:35:00 +0000 (17:35 +1000)
linux-core/drm_fb.c

index 30b1418..1a0fb79 100644 (file)
@@ -121,7 +121,7 @@ int drmfb_probe(struct drm_device *dev, struct drm_framebuffer *fb)
        info->fix.type_aux = 0;
        info->fix.mmio_start = 0;
        info->fix.mmio_len = 0;
-       info->fix.line_length = fb->pitch;
+       info->fix.line_length = fb->pitch * ((fb->bits_per_pixel + 1) / 8);
 
        info->flags = FBINFO_DEFAULT;