LF-3321: drm/imx/dcss: fix regression after introducing rotations
authorLaurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Mon, 25 Jan 2021 17:25:41 +0000 (17:25 +0000)
committerLaurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Tue, 26 Jan 2021 11:32:36 +0000 (11:32 +0000)
commitbe71123c9be7c6513253fe948ec3fef7dd51f5a8
tree92e0e54ed36721cc57c5a0bf981b8be972bd437f
parentca719435d90c12f08b765b0f7227b6eb9f78a6fe
LF-3321: drm/imx/dcss: fix regression after introducing rotations

After rotations were introduced for Vivante tiled/super-tiled formats and these
formats were also allowed for video channels, the tile type was adjusted only
if the framebuffer modifier was linear or belonged to Vivante tiled types. For
tiled video formats, the modifier is none of those and the tiled type remained
unchanged from the previous run.

Tiled video formats are handled by DTRC and DPR always fetches the linear buffers
directly from DTRC.

This patch fixes the regression. Also, add a meaningful error message if a wrong
modifier is passed to DPR for the graphics/video path.

Fixes: 69c833ef382c ("LF-2580: drm/imx/dcss: add 90/270 rotations for Vivante tiled formats.")
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
drivers/gpu/drm/imx/dcss/dcss-dpr.c