1
0
Fork 0

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>
hifive-unleashed-5.1
Alan Cox 2012-05-03 15:05:53 +01:00 committed by Dave Airlie
parent 5f503148ef
commit bb84977941
1 changed files with 2 additions and 0 deletions

View 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);