drm/vc4: Add support for DRM_FORMAT_RGB888 and DRM_FORMAT_BGR888
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Thu, 16 Nov 2017 14:22:29 +0000 (14:22 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:57:34 +0000 (15:57 +0100)
Filling out the list of supported formats based on those the
hardware can support.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/b551205d1c33fa49eef2c33ed2d60c5339b2f299.1510841336.git.dave.stevenson@raspberrypi.org
(cherry picked from commit 88f8156fba43d040dc5af42f88db2c53d6c69443)

drivers/gpu/drm/vc4/vc4_plane.c

index d3111e67289390a43ec45b40d3311137b72bc233..83e8e2455b1ffdac52f8a1321fc6f6b53b7d093a 100644 (file)
@@ -119,6 +119,14 @@ static const struct hvs_format {
                .drm = DRM_FORMAT_XRGB1555, .hvs = HVS_PIXEL_FORMAT_RGBA5551,
                .pixel_order = HVS_PIXEL_ORDER_ABGR, .has_alpha = false,
        },
+       {
+               .drm = DRM_FORMAT_RGB888, .hvs = HVS_PIXEL_FORMAT_RGB888,
+               .pixel_order = HVS_PIXEL_ORDER_XRGB, .has_alpha = false,
+       },
+       {
+               .drm = DRM_FORMAT_BGR888, .hvs = HVS_PIXEL_FORMAT_RGB888,
+               .pixel_order = HVS_PIXEL_ORDER_XBGR, .has_alpha = false,
+       },
        {
                .drm = DRM_FORMAT_YUV422,
                .hvs = HVS_PIXEL_FORMAT_YCBCR_YUV422_3PLANE,