linux_dsm_epyc7002/drivers/gpu/drm/imx
Laurentiu Palcu bac43b0f11 drm/imx/dcss: fix rotations for Vivante tiled formats
[ Upstream commit 59cb403f38099506ddbe05fd09126f3f0890860b ]

DCSS supports 90/180/270 degree rotations for Vivante tiled and super-tiled
formats. Unfortunately, with the current code, they didn't work properly.

This simple patch makes the rotations work by fixing the way the scaler is set
up for 90/270 degree rotations. In this particular case, the source width and
height need to be swapped since DPR is sending the buffer to scaler already
rotated.

Also, make sure to allow full rotations for DRM_FORMAT_MOD_VIVANTE_SUPER_TILED.

Fixes: 9021c317b7 ("drm/imx: Add initial support for DCSS on iMX8MQ")
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20201105140127.25249-2-laurentiu.palcu@oss.nxp.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:22 +01:00
..
dcss drm/imx/dcss: fix rotations for Vivante tiled formats 2020-12-30 11:53:22 +01:00
dw_hdmi-imx.c drm/imx: dw_hdmi-imx: remove empty encoder_disable callback 2020-10-26 10:59:16 +01:00
imx-drm-core.c drm/imx: drop explicit drm_mode_config_cleanup 2020-10-26 10:42:38 +01:00
imx-drm.h drm/imx: Use simple encoder 2020-04-02 14:16:44 +02:00
imx-ldb.c drm/imx: imx-ldb: reduce scope of edid_len 2020-10-27 10:20:36 +01:00
imx-tve.c drm/imx: tve remove extraneous type qualifier 2020-10-27 10:30:09 +01:00
ipuv3-crtc.c drm/imx: error path fixes and cleanups 2020-07-23 15:21:45 +10:00
ipuv3-plane.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
ipuv3-plane.h drm/imx: ipuv3-plane: fix atomic update status query for non-plus i.MX6Q 2019-05-27 15:13:57 +02:00
Kconfig drm/imx: Add initial support for DCSS on iMX8MQ 2020-09-09 16:39:48 +02:00
Makefile drm/imx: Add initial support for DCSS on iMX8MQ 2020-09-09 16:39:48 +02:00
parallel-display.c drm/imx: parallel-display: reduce scope of edid_len 2020-10-27 10:20:36 +01:00