exynos: fix buffer pitch calculation
Inki Dae
inki.dae at samsung.com
Tue Jun 26 21:52:57 PDT 2012
Your patch missed signed-off-by and also please use text format.
Thanks,
Inki Dae
From: Cooper Yuan [mailto:cooperyuan at gmail.com]
Sent: Wednesday, June 27, 2012 4:11 AM
To: dri-devel at lists.freedesktop.org
Cc: inki.dae at samsung.com
Subject: DRI: exynos: fix buffer pitch calculation
---
drivers/gpu/drm/exynos/exynos_drm_gem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c
b/drivers/gpu/drm/exynos/exynos_drm_gem.c
index 5c8b683..acb9f42 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_gem.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c
@@ -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);
--
1.7.0.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20120627/79e05a18/attachment-0001.html>
More information about the dri-devel
mailing list