aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/intel_fb.c2
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 a89ebea7b76d..bbf3e7f54f1e 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,
447 mode_cmd.height = surface_height; 447 mode_cmd.height = surface_height;
448 448
449 mode_cmd.bpp = 32; 449 mode_cmd.bpp = 32;
450 mode_cmd.pitch = mode_cmd.width * ((mode_cmd.bpp + 1) / 8); 450 mode_cmd.pitch = ALIGN(mode_cmd.width * ((mode_cmd.bpp + 1) / 8), 64);
451 mode_cmd.depth = 24; 451 mode_cmd.depth = 24;
452 452
453 size = mode_cmd.pitch * mode_cmd.height; 453 size = mode_cmd.pitch * mode_cmd.height;