Skip to contentSkip to conversation

drm/mediatek: Add RGB[A] variants to published plane formats

PATCH Applied Sean Paul 2 participants 2 messages Oct 23, 2019 – Oct 31, 2019

Subsystems (3)
lore
Share & tools
lore

Sean Paul

author
#0 lore raw

PATCH 1/1 drm/mediatek: Add RGB[A] variants to published plane formats

From: Sean Paul <[email protected]>

These formats are handled in the rdma code, but for some reason they're not published as supported formats for the planes. So add them to the list.

Cc Nicolas Boichat <[email protected]>
Cc Daniele Castagna <[email protected]>
Cc Miguel Casas <[email protected]>
---
 drivers/gpu/drm/mediatek/mtk_drm_plane.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/mediatek/mtk_drm_plane.c +6 -0
index 584a9ecadce6..49d59470cc11 100644
@@ -20,6 +20,12 @@
 static const u32 formats[] = {
 	DRM_FORMAT_XRGB8888,
 	DRM_FORMAT_ARGB8888,
+	DRM_FORMAT_BGRX8888,
+	DRM_FORMAT_BGRA8888,
+	DRM_FORMAT_ABGR8888,
+	DRM_FORMAT_XBGR8888,
+	DRM_FORMAT_RGB888,
+	DRM_FORMAT_BGR888,
 	DRM_FORMAT_RGB565,
 	DRM_FORMAT_UYVY,
 	DRM_FORMAT_YUYV,
Signature · 6 lines
Sean Paul, Software Engineer, Google / Chromium OS

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Applied
#1 lore raw

Hi, Sean:

Quoted 5 lines · Sean Paul

From: Sean Paul <[email protected]>

These formats are handled in the rdma code, but for some reason they're not published as supported formats for the planes. So add them to the list.

Applied to mediatek-drm-fixes-5.4 [1], thanks.

[1]
https://github.com/ckhu-mediatek/linux.git-tags/commits/mediatek-drm-fixes-5.4

Regards,
CK

Quoted 17 lines
Cc Nicolas Boichat <[email protected]>
Cc Daniele Castagna <[email protected]>
Cc Miguel Casas <[email protected]>
---
 drivers/gpu/drm/mediatek/mtk_drm_plane.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/mediatek/mtk_drm_plane.c +0 -0
index 584a9ecadce6..49d59470cc11 100644
@@ -20,6 +20,12 @@
 static const u32 formats[] = {
 	DRM_FORMAT_XRGB8888,

drivers/gpu/drm/mediatek/mtk_drm_plane.c line 31

Quoted 10 lines
drivers/gpu/drm/mediatek/mtk_drm_plane.c +6 -0
 	DRM_FORMAT_ARGB8888,
+	DRM_FORMAT_BGRX8888,
+	DRM_FORMAT_BGRA8888,
+	DRM_FORMAT_ABGR8888,
+	DRM_FORMAT_XBGR8888,
+	DRM_FORMAT_RGB888,
+	DRM_FORMAT_BGR888,
 	DRM_FORMAT_RGB565,
 	DRM_FORMAT_UYVY,
 	DRM_FORMAT_YUYV,

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel