]> git.baikalelectronics.ru Git - kernel.git/commit
drm/meson: fix 1px pink line on GXM when scaling video overlay
authorChristian Hewitt <christianshewitt@gmail.com>
Fri, 3 Mar 2023 12:33:12 +0000 (12:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:39 +0000 (13:33 +0100)
commite29825a82975ed0e418efe349e47c6ba541134c2
tree3abcf6140d7e59584d1dfb435b97654449bf9ba9
parentfaa0f2b11f5e1a1c62ce3a944eda7e1056e77659
drm/meson: fix 1px pink line on GXM when scaling video overlay

[ Upstream commit 7cb32b821aa2ca6234890f2620ac4f5780524f2b ]

Playing media with a resolution smaller than the crtc size requires the
video overlay to be scaled for output and GXM boards display a 1px pink
line on the bottom of the scaled overlay. Comparing with the downstream
vendor driver revealed VPP_DUMMY_DATA not being set [0].

Setting VPP_DUMMY_DATA prevents the 1px pink line from being seen.

[0] https://github.com/endlessm/linux-s905x/blob/master/drivers/amlogic/amports/video.c#L7869

Fixes: e5a2f708e761 ("drm: Add support for Amlogic Meson Graphic Controller")
Suggested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230303123312.155164-1-christianshewitt@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/meson/meson_vpp.c