Skip to content

Commit

Permalink
gma500: wide framebuffer memory
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and Dave Airlie committed May 3, 2012
1 parent 5f50314 commit bb84977
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/gma500/framebuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bb84977

Please sign in to comment.