Skip to content

Commit

Permalink
drm: fix two issues with fb consolidation.
Browse files Browse the repository at this point in the history
Set accel to none, we really don't want anyone thinking
fb is an accel interface.
Pass pitch not depth to function for intel.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie committed Aug 31, 2009
1 parent 3b51096 commit 3420e74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_fb_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ void drm_fb_helper_fill_fix(struct fb_info *info, uint32_t pitch)
info->fix.xpanstep = 1; /* doing it in hw */
info->fix.ypanstep = 1; /* doing it in hw */
info->fix.ywrapstep = 0;
info->fix.accel = FB_ACCEL_I830;
info->fix.accel = FB_ACCEL_NONE;
info->fix.type_aux = 0;

info->fix.line_length = pitch;
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ static int intelfb_create(struct drm_device *dev, uint32_t fb_width,

// memset(info->screen_base, 0, size);

drm_fb_helper_fill_fix(info, fb->depth);
drm_fb_helper_fill_fix(info, fb->pitch);
drm_fb_helper_fill_var(info, fb, fb_width, fb_height);

/* FIXME: we really shouldn't expose mmio space at all */
Expand Down

0 comments on commit 3420e74

Please sign in to comment.