From: Eric Anholt Date: Thu, 11 Dec 2008 01:23:00 +0000 (-0800) Subject: drm/i915: Fix fbcon setup to align display pitch to 64b. X-Git-Tag: accepted/tizen/common/20141203.182822~18301^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7da40f0c89c10ad3cbb63b754abaf6c3e792f79;p=platform%2Fkernel%2Flinux-arm64.git 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 Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c index a89ebea..bbf3e7f 100644 --- a/drivers/gpu/drm/i915/intel_fb.c +++ b/drivers/gpu/drm/i915/intel_fb.c @@ -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;