linux_dsm_epyc7002/drivers/gpu/drm/omapdrm
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
..
displays drm/omap: remove legacy get_resolution 2017-06-02 10:57:19 +03:00
dss drm/omap: fix YUV422 rotation with TILER 2017-06-02 11:08:59 +03:00
Kconfig drm/omap: Get rid of DRM_OMAP_NUM_CRTCS config option 2017-04-03 12:36:40 +03:00
Makefile drm/omap: remove unneeded -Iinclude/drm compiler flag 2017-05-18 07:13:17 +02:00
omap_connector.c drm/omap: fix display SYNC/DE flags 2017-04-03 12:36:40 +03:00
omap_crtc.c drm: omapdrm: Handle events when enabling/disabling CRTCs 2017-06-02 10:53:41 +03:00
omap_debugfs.c drm/omap: Remove omap_debugfs_cleanup() 2017-01-27 15:25:53 +01:00
omap_dmm_priv.h drm/omap: fix race conditon in DMM 2015-03-24 13:50:59 +02:00
omap_dmm_tiler.c drm/omap: 64bit compile fixes 2017-06-02 10:57:13 +03:00
omap_dmm_tiler.h drm/omap: fix TILER on OMAP5 2015-03-24 13:50:55 +02:00
omap_drv.c drm/omap: define compat_ioctl 2017-06-02 10:57:14 +03:00
omap_drv.h drm/omap: remove omap_drm_win 2017-06-02 11:04:17 +03:00
omap_encoder.c drm: omapdrm: Use sizeof(*var) instead of sizeof(type) for structures 2016-12-19 11:25:05 +02:00
omap_fb.c drm/omap: fix YUV422 rotation with TILER 2017-06-02 11:08:59 +03:00
omap_fbdev.c drm: omapdrm: Rename omap_gem_(get|put)_paddr() to omap_gem_(un)pin() 2017-06-02 10:57:05 +03:00
omap_gem_dmabuf.c drm: omapdrm: Take GEM object reference when exporting dmabuf 2017-06-02 10:57:08 +03:00
omap_gem.c drm/omap: 64bit compile fixes 2017-06-02 10:57:13 +03:00
omap_irq.c drm/omap: ratelimit OCP error 2017-06-02 10:57:21 +03:00
omap_plane.c drm/omap: DRM_MODE_REFLECT_* instead of mirror boolean 2017-06-02 11:07:14 +03:00
tcm-sita.c drm/omap: Use bitmaps for TILER placement 2015-12-31 11:25:47 +02:00
tcm-sita.h drm/omap: move out of staging 2013-02-16 17:38:06 -05:00
tcm.h drm/omap: Use bitmaps for TILER placement 2015-12-31 11:25:47 +02:00
TODO drm/omap: move out of staging 2013-02-16 17:38:06 -05:00