drm: rcar-du: Add support for missing 32-bit RGB formats
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 28 Mar 2019 05:31:32 +0000 (07:31 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 8 Jun 2019 13:36:41 +0000 (16:36 +0300)
Add support for the DRM_FORMAT_RGBA8888, DRM_FORMAT_RGBX8888,
DRM_FORMAT_ABGR8888 and DRM_FORMAT_XBGR8888 formats to the DU driver.
Those formats are only available on Gen3.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
drivers/gpu/drm/rcar-du/rcar_du_kms.c

index 95c81e59e2f11a6352f3a71e0a420923c5088688..5d934544090f437db497c3fba118072ad3e283e4 100644 (file)
@@ -133,6 +133,26 @@ static const struct rcar_du_format_info rcar_du_format_infos[] = {
                .v4l2 = V4L2_PIX_FMT_BGR24,
                .bpp = 24,
                .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_RGBA8888,
+               .v4l2 = V4L2_PIX_FMT_BGRA32,
+               .bpp = 32,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_RGBX8888,
+               .v4l2 = V4L2_PIX_FMT_BGRX32,
+               .bpp = 32,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_ABGR8888,
+               .v4l2 = V4L2_PIX_FMT_RGBA32,
+               .bpp = 32,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_XBGR8888,
+               .v4l2 = V4L2_PIX_FMT_RGBX32,
+               .bpp = 32,
+               .planes = 1,
        }, {
                .fourcc = DRM_FORMAT_BGRA8888,
                .v4l2 = V4L2_PIX_FMT_ARGB32,