summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rcar-du/rcar_du_drv.c
diff options
context:
space:
mode:
authorLaurent Pinchart2013-07-04 20:05:51 +0200
committerDave Airlie2013-07-05 07:35:13 +0200
commit59e32642d2e8fb170a1e777906dcb13359ea230f (patch)
tree9867f1bcc22b862e1aa23da61154619ef075e41a /drivers/gpu/drm/rcar-du/rcar_du_drv.c
parentdrm/rcar-du: Don't ignore rcar_du_crtc_create() return value (diff)
downloadkernel-qcow2-linux-59e32642d2e8fb170a1e777906dcb13359ea230f.tar.gz
kernel-qcow2-linux-59e32642d2e8fb170a1e777906dcb13359ea230f.tar.xz
kernel-qcow2-linux-59e32642d2e8fb170a1e777906dcb13359ea230f.zip
drm/rcar-du: Fix buffer pitch alignment
The DU requires a 16 pixels pitch alignement. Make sure dumb buffers are allocated with the correct pitch, and validate the pitch when creating frame buffers. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/rcar-du/rcar_du_drv.c')
-rw-r--r--drivers/gpu/drm/rcar-du/rcar_du_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
index 003b34ee38e3..ff82877de876 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
@@ -251,7 +251,7 @@ static struct drm_driver rcar_du_driver = {
.prime_fd_to_handle = drm_gem_prime_fd_to_handle,
.gem_prime_import = drm_gem_cma_dmabuf_import,
.gem_prime_export = drm_gem_cma_dmabuf_export,
- .dumb_create = drm_gem_cma_dumb_create,
+ .dumb_create = rcar_du_dumb_create,
.dumb_map_offset = drm_gem_cma_dumb_map_offset,
.dumb_destroy = drm_gem_cma_dumb_destroy,
.fops = &rcar_du_fops,