drm: rcar-du: Configure pitch for chroma plane of multiplanar formats
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 9 Dec 2014 20:45:11 +0000 (22:45 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 23 Dec 2014 10:01:49 +0000 (12:01 +0200)
The PnMWR register containing the plane stride must be programmed with
correct stride values for both the luma and chroma planes when using a
multiplanar format. Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_plane.c

index 72a7cb47bd9f8a2e18d846185e9b7a0ee77dcefb..fb3ea4f95d4aa2e7cc8b6ea006d674c1c8cd9f55 100644 (file)
@@ -130,6 +130,8 @@ void rcar_du_plane_update_base(struct rcar_du_plane *plane)
        if (plane->format->planes == 2) {
                index = (index + 1) % 8;
 
+               rcar_du_plane_write(rgrp, index, PnMWR, plane->pitch);
+
                rcar_du_plane_write(rgrp, index, PnSPXR, plane->src_x);
                rcar_du_plane_write(rgrp, index, PnSPYR, plane->src_y *
                                    (plane->format->bpp == 16 ? 2 : 1) / 2);