drm/rcar-du: Fix buffer pitch alignment
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 4 Jul 2013 18:05:51 +0000 (20:05 +0200)
committerDave Airlie <airlied@redhat.com>
Fri, 5 Jul 2013 05:35:13 +0000 (15:35 +1000)
commit59e32642d2e8fb170a1e777906dcb13359ea230f
tree9867f1bcc22b862e1aa23da61154619ef075e41a
parent3463ff67bc8d049098559adb850299c26b52350d
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>
drivers/gpu/drm/rcar-du/rcar_du_drv.c
drivers/gpu/drm/rcar-du/rcar_du_kms.c
drivers/gpu/drm/rcar-du/rcar_du_kms.h