RE: exynos: fix buffer pitch calculation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Your patch missed signed-off-by and also please use text format.

 

Thanks,

Inki Dae

 

From: Cooper Yuan [mailto:cooperyuan@xxxxxxxxx]
Sent: Wednesday, June 27, 2012 4:11 AM
To: dri-devel@xxxxxxxxxxxxxxxxxxxxx
Cc: inki.dae@xxxxxxxxxxx
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

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux