mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-10 23:12:48 +00:00
3a5584e0df
Adds latest 6.6 patches from the Raspberry Pi repository.
These patches were generated from:
https://github.com/raspberrypi/linux/commits/rpi-6.6.y/
With the following command:
git format-patch -N v6.6.67..HEAD
(HEAD -> 811ff707533bcd67cdcd368bbd46223082009b12)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
(cherry picked from commit 692205305d
)
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From af4ab4fb77dfc697c8ae068b18f27de1ee5d609f Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Wed, 11 Dec 2024 16:30:43 +0000
|
|
Subject: [PATCH] drm: vc4: txp: Do not allow 24bpp formats when transposing
|
|
|
|
The hardware doesn't support transposing to 24bpp (RGB888/BGR888)
|
|
formats. There's no way to advertise this through DRM, so block
|
|
it from atomic_check instead.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/gpu/drm/vc4/vc4_txp.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
--- a/drivers/gpu/drm/vc4/vc4_txp.c
|
|
+++ b/drivers/gpu/drm/vc4/vc4_txp.c
|
|
@@ -272,6 +272,13 @@ static int vc4_txp_connector_atomic_chec
|
|
return -EINVAL;
|
|
}
|
|
|
|
+ if (conn_state->rotation & DRM_MODE_TRANSPOSE &&
|
|
+ (fb->format->format == DRM_FORMAT_RGB888 ||
|
|
+ fb->format->format == DRM_FORMAT_BGR888)) {
|
|
+ DRM_DEBUG_KMS("24bpp formats not supported when transposing\n");
|
|
+ return -EINVAL;
|
|
+ }
|
|
+
|
|
for (i = 0; i < ARRAY_SIZE(drm_fmts); i++) {
|
|
if (fb->format->format == drm_fmts[i])
|
|
break;
|