5662a800f5354f9af956ff61103c5fc10bc121c9
[openwrt/staging/luka.git] /
1 From aeb5d9dfb4220360f5a0df416b9d8c4e908c977a Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Thu, 16 Nov 2017 14:22:29 +0000
4 Subject: [PATCH 180/454] drm/vc4: Add support for DRM_FORMAT_RGB888 and
5 DRM_FORMAT_BGR888
6
7 Filling out the list of supported formats based on those the
8 hardware can support.
9
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
11 Signed-off-by: Eric Anholt <eric@anholt.net>
12 Reviewed-by: Eric Anholt <eric@anholt.net>
13 Link: https://patchwork.freedesktop.org/patch/msgid/b551205d1c33fa49eef2c33ed2d60c5339b2f299.1510841336.git.dave.stevenson@raspberrypi.org
14 (cherry picked from commit 88f8156fba43d040dc5af42f88db2c53d6c69443)
15 ---
16 drivers/gpu/drm/vc4/vc4_plane.c | 8 ++++++++
17 1 file changed, 8 insertions(+)
18
19 --- a/drivers/gpu/drm/vc4/vc4_plane.c
20 +++ b/drivers/gpu/drm/vc4/vc4_plane.c
21 @@ -121,6 +121,14 @@ static const struct hvs_format {
22 .pixel_order = HVS_PIXEL_ORDER_ABGR, .has_alpha = false,
23 },
24 {
25 + .drm = DRM_FORMAT_RGB888, .hvs = HVS_PIXEL_FORMAT_RGB888,
26 + .pixel_order = HVS_PIXEL_ORDER_XRGB, .has_alpha = false,
27 + },
28 + {
29 + .drm = DRM_FORMAT_BGR888, .hvs = HVS_PIXEL_FORMAT_RGB888,
30 + .pixel_order = HVS_PIXEL_ORDER_XBGR, .has_alpha = false,
31 + },
32 + {
33 .drm = DRM_FORMAT_YUV422,
34 .hvs = HVS_PIXEL_FORMAT_YCBCR_YUV422_3PLANE,
35 },