linux-stable/drivers/gpu/drm/imx
Philipp Zabel cebe3f54ea drm/imx: ipuv3-plane: Fix overlay plane width
[ Upstream commit 92d43bd3bc ]

ipu_src_rect_width() was introduced to support odd screen resolutions
such as 1366x768 by internally rounding up primary plane width to a
multiple of 8 and compensating with reduced horizontal blanking.
This also caused overlay plane width to be rounded up, which was not
intended. Fix overlay plane width by limiting the rounding up to the
primary plane.

drm_rect_width(&new_state->src) >> 16 is the same value as
drm_rect_width(dst) because there is no plane scaling support.

Fixes: 94dfec48fc ("drm/imx: Add 8 pixel alignment fix")
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Link: https://lore.kernel.org/r/20221108141420.176696-1-p.zabel@pengutronix.de
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20221108141420.176696-1-p.zabel@pengutronix.de
Tested-by: Ian Ray <ian.ray@ge.com>
(cherry picked from commit 4333472f8d)
Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-12 12:00:40 +01:00
..
dcss One patch for imx/dcss to get rid of a warning message, one off-by-one 2022-08-18 08:51:42 +10:00
dw_hdmi-imx.c drm/imx: dw_hdmi-imx: Fix bailout in error cases of probe 2022-04-04 09:37:42 +02:00
imx-drm-core.c drm/imx: Add support for the nomodeset kernel parameter 2022-01-27 19:15:49 +01:00
imx-drm.h
imx-ldb.c drm: Remove linux/media-bus-format.h from drm_crtc.h 2022-07-05 21:15:13 +03:00
imx-tve.c drm/imx: imx-tve: Fix return type of imx_tve_connector_mode_valid 2022-11-26 09:27:20 +01:00
ipuv3-crtc.c drm: imx: fix compiler warning with gcc-12 2022-06-09 09:39:44 -07:00
ipuv3-plane.c drm/imx: ipuv3-plane: Fix overlay plane width 2023-01-12 12:00:40 +01:00
ipuv3-plane.h drm/imx: ipuv3-plane: use drm managed resources 2021-01-04 12:59:34 +01:00
Kconfig drm: Remove CONFIG_DRM_KMS_CMA_HELPER option 2021-11-30 11:10:03 +01:00
Makefile
parallel-display.c drm: Remove linux/media-bus-format.h from drm_crtc.h 2022-07-05 21:15:13 +03:00