[PATCH 44/72] imx-drm: ipuv3-plane: Fix planar formats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



During a mode set the U/V plane strides and buffer offsets
for planar pixel formats were not being configured in cpmem.
Fix by calling ipu_cpmem_set_yuv_planar() for planar formats.

Signed-off-by: Steve Longerbeam <steve_longerbeam@xxxxxxxxxx>
---
 drivers/staging/imx-drm/ipuv3-plane.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/staging/imx-drm/ipuv3-plane.c b/drivers/staging/imx-drm/ipuv3-plane.c
index 365cdfe..edfa72a 100644
--- a/drivers/staging/imx-drm/ipuv3-plane.c
+++ b/drivers/staging/imx-drm/ipuv3-plane.c
@@ -174,6 +174,10 @@ int ipu_plane_mode_set(struct ipu_plane *ipu_plane, struct drm_crtc *crtc,
 			fb->pixel_format);
 		return ret;
 	}
+	if (ipu_drm_fourcc_is_planar(fb->pixel_format))
+		ipu_cpmem_set_yuv_planar(ipu_plane->ipu_ch, fb->pixel_format,
+					 fb->pitches[0], crtc_h);
+
 	ipu_cpmem_set_high_priority(ipu_plane->ipu_ch);
 
 	ret = ipu_plane_set_base(ipu_plane, fb, src_x, src_y);
-- 
1.7.9.5

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel





[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux