From: Daniil Gnusarev <gnusarevda@basealt.ru>
To: devel-kernel@lists.altlinux.org
Subject: [d-kernel] [PATCH 1/1] drm: baikal-vdu: remove unsupported framebuffer formats
Date: Wed, 2 Jul 2025 16:58:07 +0400
Message-ID: <20250702125808.1586676-2-gnusarevda@basealt.ru> (raw)
In-Reply-To: <20250702125808.1586676-1-gnusarevda@basealt.ru>
The VDU block does not support BGR framebuffer formats,
they must be removed from the list of supported ones.
Signed-off-by: Daniil Gnusarev <gnusarevda@basealt.ru>
---
drivers/gpu/drm/baikal/baikal_vdu_plane.c | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/drivers/gpu/drm/baikal/baikal_vdu_plane.c b/drivers/gpu/drm/baikal/baikal_vdu_plane.c
index 490110f7e50cef..97c039df72a649 100644
--- a/drivers/gpu/drm/baikal/baikal_vdu_plane.c
+++ b/drivers/gpu/drm/baikal/baikal_vdu_plane.c
@@ -51,30 +51,16 @@ static void baikal_vdu_primary_plane_atomic_update(struct drm_plane *plane,
* to low bit as you read left to right.
*/
switch (fb->format->format) {
- case DRM_FORMAT_BGR888:
- cntl |= CR1_BPP24 | CR1_FBP | CR1_BGR;
- break;
case DRM_FORMAT_RGB888:
cntl |= CR1_BPP24 | CR1_FBP;
break;
- case DRM_FORMAT_ABGR8888:
- case DRM_FORMAT_XBGR8888:
- cntl |= CR1_BPP24 | CR1_BGR;
- break;
case DRM_FORMAT_ARGB8888:
case DRM_FORMAT_XRGB8888:
cntl |= CR1_BPP24;
break;
- case DRM_FORMAT_BGR565:
- cntl |= CR1_BPP16_565 | CR1_BGR;
- break;
case DRM_FORMAT_RGB565:
cntl |= CR1_BPP16_565;
break;
- case DRM_FORMAT_ABGR1555:
- case DRM_FORMAT_XBGR1555:
- cntl |= CR1_BPP16_555 | CR1_BGR;
- break;
case DRM_FORMAT_ARGB1555:
case DRM_FORMAT_XRGB1555:
cntl |= CR1_BPP16_555;
@@ -112,16 +98,10 @@ int baikal_vdu_primary_plane_init(struct baikal_vdu_private *priv)
struct drm_device *drm = priv->drm;
struct drm_plane *plane = &priv->primary;
static const u32 formats[] = {
- DRM_FORMAT_BGR888,
DRM_FORMAT_RGB888,
- DRM_FORMAT_ABGR8888,
- DRM_FORMAT_XBGR8888,
DRM_FORMAT_ARGB8888,
DRM_FORMAT_XRGB8888,
- DRM_FORMAT_BGR565,
DRM_FORMAT_RGB565,
- DRM_FORMAT_ABGR1555,
- DRM_FORMAT_XBGR1555,
DRM_FORMAT_ARGB1555,
DRM_FORMAT_XRGB1555,
};
--
2.42.2
next prev parent reply other threads:[~2025-07-02 12:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-02 12:58 [d-kernel] [PATCH 0/1] Support Baikal-M in 6.12 Daniil Gnusarev
2025-07-02 12:58 ` Daniil Gnusarev [this message]
2025-07-03 15:48 ` Vitaly Chikunov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250702125808.1586676-2-gnusarevda@basealt.ru \
--to=gnusarevda@basealt.ru \
--cc=devel-kernel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux kernel packages development
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
public-inbox-index devel-kernel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git