]> Git Repo - linux.git/commitdiff
drm: rcar-du: Add support for missing 16-bit RGB1555 formats
authorLaurent Pinchart <[email protected]>
Thu, 28 Mar 2019 05:31:32 +0000 (07:31 +0200)
committerLaurent Pinchart <[email protected]>
Sat, 8 Jun 2019 13:36:41 +0000 (16:36 +0300)
Add support for the DRM_FORMAT_RGBA5551, DRM_FORMAT_RGBX5551,
DRM_FORMAT_ABGR1555, DRM_FORMAT_XBGR1555, DRM_FORMAT_BGRA5551 and
DRM_FORMAT_BGRX5551 formats to the DU driver. Those formats are only
available on Gen3.

Signed-off-by: Laurent Pinchart <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
Reviewed-by: Jacopo Mondi <[email protected]>
Acked-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/rcar-du/rcar_du_kms.c

index a6deb7916daa7652432c4d5eda83d578f9c75825..2dc9caee87670a41a84beefa6d005eb68e32eab8 100644 (file)
@@ -153,6 +153,36 @@ static const struct rcar_du_format_info rcar_du_format_infos[] = {
                .v4l2 = V4L2_PIX_FMT_BGRX444,
                .bpp = 16,
                .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_RGBA5551,
+               .v4l2 = V4L2_PIX_FMT_RGBA555,
+               .bpp = 16,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_RGBX5551,
+               .v4l2 = V4L2_PIX_FMT_RGBX555,
+               .bpp = 16,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_ABGR1555,
+               .v4l2 = V4L2_PIX_FMT_ABGR555,
+               .bpp = 16,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_XBGR1555,
+               .v4l2 = V4L2_PIX_FMT_XBGR555,
+               .bpp = 16,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_BGRA5551,
+               .v4l2 = V4L2_PIX_FMT_BGRA555,
+               .bpp = 16,
+               .planes = 1,
+       }, {
+               .fourcc = DRM_FORMAT_BGRX5551,
+               .v4l2 = V4L2_PIX_FMT_BGRX555,
+               .bpp = 16,
+               .planes = 1,
        }, {
                .fourcc = DRM_FORMAT_BGR888,
                .v4l2 = V4L2_PIX_FMT_RGB24,
This page took 0.059539 seconds and 4 git commands to generate.