projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dd3b72
)
drm/exynos: fix buffer pitch calculation
author
Cooper Yuan
<cooperyuan@gmail.com>
Fri, 29 Jun 2012 02:49:45 +0000
(11:49 +0900)
committer
Inki Dae
<inki.dae@samsung.com>
Fri, 27 Jul 2012 02:13:55 +0000
(11:13 +0900)
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>
drivers/gpu/drm/exynos/exynos_drm_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/exynos/exynos_drm_gem.c
b/drivers/gpu/drm/exynos/exynos_drm_gem.c
index
5c8b683
..
acb9f42
100644
(file)
--- 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);