These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
From 3eea16c3c87501b8f21022297e9b6276f5294819 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Fri, 21 Jun 2024 16:20:39 +0100
|
|
Subject: [PATCH] drm/vc4: plane: YUV planes require vertical scaling to always
|
|
be enabled
|
|
|
|
It has been observed that a YUV422 unity scaled plane isn't displayed.
|
|
Enabling vertical scaling on the UV planes solves this. There is
|
|
already a similar clause to always enable horizontal scaling on the
|
|
UV planes.
|
|
|
|
Reviewed-by: Maxime Ripard <mripard@kernel.org>
|
|
Link: https://patchwork.freedesktop.org/patch/msgid/20240621152055.4180873-16-dave.stevenson@raspberrypi.com
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_plane.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_plane.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_plane.c
|
|
@@ -517,6 +517,12 @@ static int vc4_plane_setup_clipping_and_
|
|
*/
|
|
if (vc4_state->x_scaling[1] == VC4_SCALING_NONE)
|
|
vc4_state->x_scaling[1] = VC4_SCALING_PPF;
|
|
+
|
|
+ /* Similarly UV needs vertical scaling to be enabled.
|
|
+ * Without this a 1:1 scaled YUV422 plane isn't rendered.
|
|
+ */
|
|
+ if (vc4_state->y_scaling[1] == VC4_SCALING_NONE)
|
|
+ vc4_state->y_scaling[1] = VC4_SCALING_PPF;
|
|
} else {
|
|
vc4_state->is_yuv = false;
|
|
vc4_state->x_scaling[1] = VC4_SCALING_NONE;
|