mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
drm: rcar-du: Configure pitch for chroma plane of multiplanar formats
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>
This commit is contained in:
parent
347d761c74
commit
49785e2581
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user