mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-22 04:56:15 +00:00
538a1d740c
The patches were generated from the RPi repo with the following command: git format-patch v6.6.58..rpi-6.6.y Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
49 lines
1.5 KiB
Diff
49 lines
1.5 KiB
Diff
From 9f0523de1b7ef122fae527326372a4ab5aa42fa6 Mon Sep 17 00:00:00 2001
|
|
From: Jan Kehren <jan.kehren@emteria.com>
|
|
Date: Tue, 20 Aug 2024 08:08:50 +0000
|
|
Subject: [PATCH 1223/1350] drm: rp1: rp1-dpi: Add DRM_FORMAT_ARGB8888 and
|
|
DRM_FORMAT_ABGR8888
|
|
|
|
Android requires this.
|
|
As the underlying hardware doesn't support alpha blending,
|
|
we ignore the alpha value.
|
|
|
|
Signed-off-by: Jan Kehren <jan.kehren@emteria.com>
|
|
---
|
|
drivers/gpu/drm/rp1/rp1-dpi/rp1_dpi.c | 2 ++
|
|
drivers/gpu/drm/rp1/rp1-dpi/rp1_dpi_hw.c | 12 ++++++++++++
|
|
2 files changed, 14 insertions(+)
|
|
|
|
--- a/drivers/gpu/drm/rp1/rp1-dpi/rp1_dpi.c
|
|
+++ b/drivers/gpu/drm/rp1/rp1-dpi/rp1_dpi.c
|
|
@@ -260,6 +260,8 @@ static struct drm_driver rp1dpi_driver =
|
|
static const u32 rp1dpi_formats[] = {
|
|
DRM_FORMAT_XRGB8888,
|
|
DRM_FORMAT_XBGR8888,
|
|
+ DRM_FORMAT_ARGB8888,
|
|
+ DRM_FORMAT_ABGR8888,
|
|
DRM_FORMAT_RGB888,
|
|
DRM_FORMAT_BGR888,
|
|
DRM_FORMAT_RGB565
|
|
--- a/drivers/gpu/drm/rp1/rp1-dpi/rp1_dpi_hw.c
|
|
+++ b/drivers/gpu/drm/rp1/rp1-dpi/rp1_dpi_hw.c
|
|
@@ -258,6 +258,18 @@ static const struct rp1dpi_ipixfmt my_fo
|
|
.rgbsz = BITS(DPI_DMA_RGBSZ_BPP, 3),
|
|
},
|
|
{
|
|
+ .format = DRM_FORMAT_ARGB8888,
|
|
+ .mask = IMASK_RGB(0x3fc, 0x3fc, 0x3fc),
|
|
+ .shift = ISHIFT_RGB(23, 15, 7),
|
|
+ .rgbsz = BITS(DPI_DMA_RGBSZ_BPP, 3),
|
|
+ },
|
|
+ {
|
|
+ .format = DRM_FORMAT_ABGR8888,
|
|
+ .mask = IMASK_RGB(0x3fc, 0x3fc, 0x3fc),
|
|
+ .shift = ISHIFT_RGB(7, 15, 23),
|
|
+ .rgbsz = BITS(DPI_DMA_RGBSZ_BPP, 3),
|
|
+ },
|
|
+ {
|
|
.format = DRM_FORMAT_RGB888,
|
|
.mask = IMASK_RGB(0x3fc, 0x3fc, 0x3fc),
|
|
.shift = ISHIFT_RGB(23, 15, 7),
|