linux_dsm_epyc7002/drivers/gpu/drm/imx/dcss
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-blkctl.c
dcss-crtc.c
dcss-ctxld.c
dcss-dev.c
dcss-dev.h
dcss-dpr.c
dcss-drv.c
dcss-dtg.c
dcss-kms.c
dcss-kms.h
dcss-plane.c drm/imx/dcss: fix rotations for Vivante tiled formats 2020-12-30 11:53:22 +01:00
dcss-scaler.c
dcss-ss.c
Kconfig drm/imx/dcss: fix compilation issue on 32bit 2020-09-10 12:09:54 +02:00
Makefile