Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1327171

[PATCH 09/10] drm/vc4: Add support a few more RGB display plane formats.

From Eric Anholt <eric@anholt.net>
Newsgroups linux.kernel
Subject [PATCH 09/10] drm/vc4: Add support a few more RGB display plane formats.
Date 2016-02-04 21:40 +0100
Message-ID <qYyR4-6Xw-19@gated-at.bofh.it> (permalink)
References <qYyHo-6SV-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


These were all touch-tested with modetest.

Signed-off-by: Eric Anholt <eric@anholt.net>
---
 drivers/gpu/drm/vc4/vc4_plane.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c
index 7cedc726..9a390cf 100644
--- a/drivers/gpu/drm/vc4/vc4_plane.c
+++ b/drivers/gpu/drm/vc4/vc4_plane.c
@@ -88,6 +88,22 @@ static const struct hvs_format {
 		.drm = DRM_FORMAT_ARGB8888, .hvs = HVS_PIXEL_FORMAT_RGBA8888,
 		.pixel_order = HVS_PIXEL_ORDER_ABGR, .has_alpha = true,
 	},
+	{
+		.drm = DRM_FORMAT_RGB565, .hvs = HVS_PIXEL_FORMAT_RGB565,
+		.pixel_order = HVS_PIXEL_ORDER_XRGB, .has_alpha = false,
+	},
+	{
+		.drm = DRM_FORMAT_BGR565, .hvs = HVS_PIXEL_FORMAT_RGB565,
+		.pixel_order = HVS_PIXEL_ORDER_XBGR, .has_alpha = false,
+	},
+	{
+		.drm = DRM_FORMAT_ARGB1555, .hvs = HVS_PIXEL_FORMAT_RGBA5551,
+		.pixel_order = HVS_PIXEL_ORDER_ABGR, .has_alpha = true,
+	},
+	{
+		.drm = DRM_FORMAT_XRGB1555, .hvs = HVS_PIXEL_FORMAT_RGBA5551,
+		.pixel_order = HVS_PIXEL_ORDER_ABGR, .has_alpha = false,
+	},
 };
 
 static const struct hvs_format *vc4_get_hvs_format(u32 drm_format)
-- 
2.7.0

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 00/10] vc4: scaling and YUV overlays for 4.6 Eric Anholt <eric@anholt.net> - 2016-02-04 21:30 +0100
  [PATCH 07/10] drm/vc4: Fix which value is being used for source image size. Eric Anholt <eric@anholt.net> - 2016-02-04 21:30 +0100
  [PATCH 06/10] drm/vc4: Add more display planes to each CRTC. Eric Anholt <eric@anholt.net> - 2016-02-04 21:30 +0100
  [PATCH 01/10] drm/vc4: Improve comments on vc4_plane_state members. Eric Anholt <eric@anholt.net> - 2016-02-04 21:30 +0100
  [PATCH 03/10] drm/vc4: Move the plane clipping/scaling setup to a separate function. Eric Anholt <eric@anholt.net> - 2016-02-04 21:30 +0100
  [PATCH 04/10] drm/vc4: Add a proper short-circut path for legacy cursor updates. Eric Anholt <eric@anholt.net> - 2016-02-04 21:40 +0100
  [PATCH 09/10] drm/vc4: Add support a few more RGB display plane formats. Eric Anholt <eric@anholt.net> - 2016-02-04 21:40 +0100

csiph-web