dect
/
linux-2.6
Archived
13
0
Fork 0

drm/i915: Fix fbcon setup to align display pitch to 64b.

This is required by the display plane, and fixes 1400x1050 laptop displays.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Eric Anholt 2008-12-10 17:23:00 -08:00 committed by Dave Airlie
parent 8d391aa410
commit e7da40f0c8
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ int intelfb_create(struct drm_device *dev, uint32_t fb_width,
mode_cmd.height = surface_height;
mode_cmd.bpp = 32;
mode_cmd.pitch = mode_cmd.width * ((mode_cmd.bpp + 1) / 8);
mode_cmd.pitch = ALIGN(mode_cmd.width * ((mode_cmd.bpp + 1) / 8), 64);
mode_cmd.depth = 24;
size = mode_cmd.pitch * mode_cmd.height;