linux/drivers/gpu/drm/omapdrm/dss
Tomi Valkeinen c4df6e4277 drm/omap: fix YUV422 rotation with TILER
TILER rotation with YUV422 pixelformats does not work at the moment. All
other pixel formats work, because the pixelformat's pixel size is equal
to tiler unit size (e.g. XR24's pixel size is 32 bits, and the TILER
unit size that has to be used is 32 bits).

For YUV422 formats this is not the case, as the TILER unit size has to
be 32 bits, but the pixel size is 16 bits. The end result is OCP errors
and sync losts.

This patch adds the code to adjust the variables for YUV422 formats.

We could make the code more generic by passing around the pixel format,
rotation type, angle and the tiler unit size, which would allow us to do
calculations without special case for YUV422. However, this would make
the code more complex, and at least for now this is much more easier to
handle with these two special cases for YUV422.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2017-06-02 11:08:59 +03:00
..
base.c drm/omap: dss: Support for detecting display stack readiness 2017-04-03 12:36:40 +03:00
core.c drm/omap: remove rfbi 2017-06-02 10:57:18 +03:00
dispc_coefs.c drm/omap: Do not include video/omapdss.h directly in drivers 2016-06-03 16:06:37 +03:00
dispc.c drm/omap: fix YUV422 rotation with TILER 2017-06-02 11:08:59 +03:00
dispc.h drm/omap: Rename enum omap_plane to enum omap_plane_id 2017-04-03 12:36:40 +03:00
display.c drm/omap: remove legacy get_resolution 2017-06-02 10:57:19 +03:00
dpi.c drm/omap: dpi: remove legacy data_lines 2017-06-02 10:57:17 +03:00
dsi.c drm: omapdrm: Drop support for non-DT devices 2017-06-02 10:57:09 +03:00
dss_features.c drm/omap: rename color_mode to fourcc 2017-06-02 10:57:26 +03:00
dss_features.h drm/omap: rename color_mode to fourcc 2017-06-02 10:57:26 +03:00
dss-of.c drm: omap: use common OF graph helpers 2017-04-06 17:00:27 -04:00
dss.c drm: omapdrm: Remove duplicate error messages when mapping memory 2017-06-02 10:57:09 +03:00
dss.h drm/omap: remove rfbi 2017-06-02 10:57:18 +03:00
hdmi4_core.c drm: omapdrm: Remove duplicate error messages when mapping memory 2017-06-02 10:57:09 +03:00
hdmi4_core.h
hdmi4.c drm: omapdrm: Drop support for non-DT devices 2017-06-02 10:57:09 +03:00
hdmi5_core.c drm: omapdrm: Remove duplicate error messages when mapping memory 2017-06-02 10:57:09 +03:00
hdmi5_core.h
hdmi5.c drm: omapdrm: Drop support for non-DT devices 2017-06-02 10:57:09 +03:00
hdmi_common.c drm/omap: Do not include video/omapdss.h directly in drivers 2016-06-03 16:06:37 +03:00
hdmi_phy.c drm: omapdrm: Remove duplicate error messages when mapping memory 2017-06-02 10:57:09 +03:00
hdmi_pll.c drm: omapdrm: Remove duplicate error messages when mapping memory 2017-06-02 10:57:09 +03:00
hdmi_wp.c drm: omapdrm: Remove duplicate error messages when mapping memory 2017-06-02 10:57:09 +03:00
hdmi.h drm/omap: Use consistent name for struct videomode 2016-11-02 10:48:18 +02:00
Kconfig drm/omap: remove rfbi 2017-06-02 10:57:18 +03:00
Makefile drm/omap: remove rfbi 2017-06-02 10:57:18 +03:00
omapdss-boot-init.c drm: omapdrm: Use sizeof(*var) instead of sizeof(type) for structures 2016-12-19 11:25:05 +02:00
omapdss.h drm/omap: DRM_MODE_REFLECT_* instead of mirror boolean 2017-06-02 11:07:14 +03:00
output.c drm/omap: Remove unused omap_dss_find_output() function 2017-06-02 10:57:20 +03:00
pll.c drm/omap: work-around for errata i886 2017-04-03 12:36:40 +03:00
sdi.c drm/omap: sdi: remove legacy set_datapairs 2017-06-02 10:57:16 +03:00
venc.c drm/omap: venc: remove set_type & invert_vid_out_polarity 2017-06-02 10:57:16 +03:00
video-pll.c drm: omapdrm: Remove duplicate error messages when mapping memory 2017-06-02 10:57:09 +03:00