Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357924
b: refs/heads/master
c: 88afe71
h: refs/heads/master
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed Dec 17, 2012
1 parent b8b99ed commit 2f53bb8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb119bd612906519cacef2536a9a524c2da5f7fb
refs/heads/master: 88afe715dd5469bc24ca7a19ac62dd3c241cab48
7 changes: 7 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@ static int intelfb_create(struct intel_fbdev *ifbdev,
drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth);
drm_fb_helper_fill_var(info, &ifbdev->helper, sizes->fb_width, sizes->fb_height);

/* If the object is shmemfs backed, it will have given us zeroed pages.
* If the object is stolen however, it will be full of whatever
* garbage was left in there.
*/
if (ifbdev->ifb.obj->stolen)
memset_io(info->screen_base, 0, info->screen_size);

/* Use default scratch pixmap (info->pixmap.flags = FB_PIXMAP_SYSTEM) */

DRM_DEBUG_KMS("allocated %dx%d fb: 0x%08x, bo %p\n",
Expand Down

0 comments on commit 2f53bb8

Please sign in to comment.