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)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 6 Mar 2023 08:42:01 +0000 (09:42 +0100)
commit5c8cf1664f288098a971a1d1e65716a2b6a279e1
tree3dc100322969be1958f85f6fd342ebea42a5bfea
parent4d8457fe0eb9c80ff7795cf8a30962128b71d853
drm/meson: fix 1px pink line on GXM when scaling video overlay

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: bbbe775ec5b5 ("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
drivers/gpu/drm/meson/meson_vpp.c