mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
drm/exynos: fix buffer pitch calculation
Signed-off-by: Cooper Yuan <cooperyuan@gmail.com> Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
This commit is contained in:
parent
0dd3b72cc6
commit
3fd6b69474
1 changed files with 1 additions and 1 deletions
|
|
@ -668,7 +668,7 @@ int exynos_drm_gem_dumb_create(struct drm_file *file_priv,
|
|||
* with DRM_IOCTL_MODE_CREATE_DUMB command.
|
||||
*/
|
||||
|
||||
args->pitch = args->width * args->bpp >> 3;
|
||||
args->pitch = args->width * ((args->bpp + 7) / 8);
|
||||
args->size = PAGE_ALIGN(args->pitch * args->height);
|
||||
|
||||
exynos_gem_obj = exynos_drm_gem_create(dev, args->flags, args->size);
|
||||
|
|
|
|||
Loading…
Reference in a new issue