diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-07-04 14:05:51 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-07-05 01:35:13 -0400 |
commit | 59e32642d2e8fb170a1e777906dcb13359ea230f (patch) | |
tree | 9867f1bcc22b862e1aa23da61154619ef075e41a /drivers/gpu/drm/rcar-du/rcar_du_kms.h | |
parent | 3463ff67bc8d049098559adb850299c26b52350d (diff) |
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_kms.h')
-rw-r--r-- | drivers/gpu/drm/rcar-du/rcar_du_kms.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_kms.h b/drivers/gpu/drm/rcar-du/rcar_du_kms.h index e4d8db069a06..dba472263486 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_kms.h +++ b/drivers/gpu/drm/rcar-du/rcar_du_kms.h | |||
@@ -56,4 +56,7 @@ void rcar_du_encoder_mode_commit(struct drm_encoder *encoder); | |||
56 | 56 | ||
57 | int rcar_du_modeset_init(struct rcar_du_device *rcdu); | 57 | int rcar_du_modeset_init(struct rcar_du_device *rcdu); |
58 | 58 | ||
59 | int rcar_du_dumb_create(struct drm_file *file, struct drm_device *dev, | ||
60 | struct drm_mode_create_dumb *args); | ||
61 | |||
59 | #endif /* __RCAR_DU_KMS_H__ */ | 62 | #endif /* __RCAR_DU_KMS_H__ */ |