mirror-linux/drivers/gpu/drm/imx
Philipp Zabel 71f9fd5bcf 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:02:27 +01:00
..
dcss drm-misc-next for v6.1: 2022-09-06 10:56:04 +02:00
Kconfig drm/imx: Kconfig: Remove duplicated 'select DRM_KMS_HELPER' line 2022-11-01 14:36:17 +01:00
Makefile
dw_hdmi-imx.c
imx-drm-core.c drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
imx-drm.h drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
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-01 14:36:55 +01:00
ipuv3-crtc.c drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
ipuv3-plane.c drm/imx: ipuv3-plane: Fix overlay plane width 2023-01-12 12:02:27 +01:00
ipuv3-plane.h
parallel-display.c drm: Remove linux/media-bus-format.h from drm_crtc.h 2022-07-05 21:15:13 +03:00