mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 03e0e348df7b685439f2db61ec2d8c8da25d1217 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Wed, 23 Aug 2023 17:48:23 +0100
|
|
Subject: [PATCH] drm/vc4: UV planes vertical scaling must 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.
|
|
|
|
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
|
|
@@ -522,6 +522,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;
|