mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
drm/rockchip: logo: round_up pitches to word align
Change-Id: I836193ca37fb62c72c61aa47a807959c3c189925 Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
@@ -255,7 +255,7 @@ get_framebuffer_by_node(struct drm_device *drm_dev, struct device_node *node)
|
||||
}
|
||||
bpp = val;
|
||||
|
||||
mode_cmd.pitches[0] = mode_cmd.width * bpp / 8;
|
||||
mode_cmd.pitches[0] = ALIGN(mode_cmd.width * bpp, 32) / 8;
|
||||
|
||||
switch (bpp) {
|
||||
case 16:
|
||||
|
||||
Reference in New Issue
Block a user