diff options
author | Eric Anholt <eric@anholt.net> | 2008-12-10 17:23:00 -0800 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-12-29 17:47:25 +1000 |
commit | e7da40f0c89c10ad3cbb63b754abaf6c3e792f79 (patch) | |
tree | 152885c6c1d3d9d64e5f6ea18582de6326b470a7 /drivers/gpu | |
parent | 8d391aa410ecb230fc4c3147b94eec25b9f3c20f (diff) | |
download | linux-3.10-e7da40f0c89c10ad3cbb63b754abaf6c3e792f79.tar.gz linux-3.10-e7da40f0c89c10ad3cbb63b754abaf6c3e792f79.tar.bz2 linux-3.10-e7da40f0c89c10ad3cbb63b754abaf6c3e792f79.zip |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/intel_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c index a89ebea7b76..bbf3e7f54f1 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; |