Message ID | 20190328070723.26553-8-laurent.pinchart+renesas@ideasonboard.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | R-Car DU: Add missing RGB pixel formats | expand |
Hi Laurent, On Thu, Mar 28, 2019 at 09:07:21AM +0200, Laurent Pinchart wrote: > 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> > --- > drivers/gpu/drm/rcar-du/rcar_du_kms.c | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/drivers/gpu/drm/rcar-du/rcar_du_kms.c b/drivers/gpu/drm/rcar-du/rcar_du_kms.c > index f8f7fff34dff..4084136af845 100644 > --- a/drivers/gpu/drm/rcar-du/rcar_du_kms.c > +++ b/drivers/gpu/drm/rcar-du/rcar_du_kms.c > @@ -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, Compared the format definitions between DRM and V4L2 and they seems to match to me. Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Thanks j > }, { > .fourcc = DRM_FORMAT_BGRA8888, > .v4l2 = V4L2_PIX_FMT_ARGB32, > -- > Regards, > > Laurent Pinchart >
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_kms.c b/drivers/gpu/drm/rcar-du/rcar_du_kms.c index f8f7fff34dff..4084136af845 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_kms.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_kms.c @@ -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,
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> --- drivers/gpu/drm/rcar-du/rcar_du_kms.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)