|
@@ -447,7 +447,7 @@ int intelfb_create(struct drm_device *dev, uint32_t fb_width,
|
|
mode_cmd.height = surface_height;
|
|
mode_cmd.height = surface_height;
|
|
|
|
|
|
mode_cmd.bpp = 32;
|
|
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;
|
|
mode_cmd.depth = 24;
|
|
|
|
|
|
size = mode_cmd.pitch * mode_cmd.height;
|
|
size = mode_cmd.pitch * mode_cmd.height;
|