summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/gma500
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-05-03 16:05:53 +0200
committerDave Airlie <airlied@redhat.com>2012-05-03 17:28:03 +0200
commitbb84977941ad85a5c0b9ff4fd5331913e31107c4 (patch)
treed6bc8dc6e773b323fcfed5853167de8844d5eeed /drivers/gpu/drm/gma500
parentgma500: Sync up Oaktrail HDMI (diff)
downloadlinux-bb84977941ad85a5c0b9ff4fd5331913e31107c4.tar.xz
linux-bb84977941ad85a5c0b9ff4fd5331913e31107c4.zip
gma500: wide framebuffer memory
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>
Diffstat (limited to 'drivers/gpu/drm/gma500')
-rw-r--r--drivers/gpu/drm/gma500/framebuffer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c
index c9fe4bdeb681..4fc0d08bd61b 100644
--- a/drivers/gpu/drm/gma500/framebuffer.c
+++ b/drivers/gpu/drm/gma500/framebuffer.c
@@ -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);