[PATCH 2/3] drm/sun4i: frontend: Reuse the ch0 phase for RGB formats

Jernej Škrabec jernej.skrabec at siol.net
Wed Oct 21 13:18:37 EDT 2020


Hi!

Dne četrtek, 15. oktober 2020 ob 11:36:41 CEST je Maxime Ripard napisal(a):
> When using the scaler on the A10-like frontend with single-planar formats,
> the current code will setup the channel 0 filter (used for the R or Y
> component) with a different phase parameter than the channel 1 filter (used
> for the G/B or U/V components).
> 
> This creates a bleed out that keeps repeating on of the last line of the
> RGB plane across the rest of the display. The Allwinner BSP either applies
> the same phase parameter over both channels or use a separate one, the
> condition being whether the input format is YUV420 or not.
> 
> Since YUV420 is both subsampled and multi-planar, and since YUYV is
> subsampled but single-planar, we can rule out the subsampling and assume
> that the condition is actually whether the format is single or
> multi-planar. And it looks like applying the same phase parameter over both
> channels for single-planar formats fixes our issue, while we keep the
> multi-planar formats working properly.
> 
> Reported-by: Taras Galchenko <tpgalchenko at gmail.com>
> Signed-off-by: Maxime Ripard <maxime at cerno.tech>

Acked-by: Jernej Skrabec <jernej.skrabec at siol.net>

Best regards,
Jernej





More information about the linux-arm-kernel mailing list