gma500: wide framebuffer memory
authorAlan Cox <alan@linux.intel.com>
Thu, 3 May 2012 14:05:53 +0000 (15:05 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 3 May 2012 15:28:03 +0000 (16:28 +0100)
If we set a small text framebuffer and have a bigger scanout then we want
to send black not random bits for the overscan.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/framebuffer.c

index c9fe4bdeb6816ad17c8c3c0cc4289506fdb43615..4fc0d08bd61baf4c3db367de6cb780819e359070 100644 (file)
@@ -408,6 +408,8 @@ static int psbfb_create(struct psb_fbdev *fbdev,
                        return -ENOMEM;
        }
 
+       memset(dev_priv->vram_addr + backing->offset, 0, size);
+
        mutex_lock(&dev->struct_mutex);
 
        info = framebuffer_alloc(0, device);