Commit 97018453 authored by Damian Hobson-Garcia's avatar Damian Hobson-Garcia Committed by Laurent Pinchart

drm:rcar-du: Enable ABGR and XBGR formats

These formats are used by Android so having them available
allows the DU to be used for composition operations.
Signed-off-by: default avatarDamian Hobson-Garcia <dhobsong@igel.co.jp>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
parent 0dfcf80d
...@@ -123,6 +123,8 @@ static const u32 rcar_du_vsp_formats[] = { ...@@ -123,6 +123,8 @@ static const u32 rcar_du_vsp_formats[] = {
DRM_FORMAT_RGB888, DRM_FORMAT_RGB888,
DRM_FORMAT_BGRA8888, DRM_FORMAT_BGRA8888,
DRM_FORMAT_BGRX8888, DRM_FORMAT_BGRX8888,
DRM_FORMAT_ABGR8888,
DRM_FORMAT_XBGR8888,
DRM_FORMAT_ARGB8888, DRM_FORMAT_ARGB8888,
DRM_FORMAT_XRGB8888, DRM_FORMAT_XRGB8888,
DRM_FORMAT_UYVY, DRM_FORMAT_UYVY,
...@@ -155,6 +157,8 @@ static const u32 rcar_du_vsp_formats_gen4[] = { ...@@ -155,6 +157,8 @@ static const u32 rcar_du_vsp_formats_gen4[] = {
DRM_FORMAT_RGB888, DRM_FORMAT_RGB888,
DRM_FORMAT_BGRA8888, DRM_FORMAT_BGRA8888,
DRM_FORMAT_BGRX8888, DRM_FORMAT_BGRX8888,
DRM_FORMAT_ABGR8888,
DRM_FORMAT_XBGR8888,
DRM_FORMAT_ARGB8888, DRM_FORMAT_ARGB8888,
DRM_FORMAT_XRGB8888, DRM_FORMAT_XRGB8888,
DRM_FORMAT_RGBX1010102, DRM_FORMAT_RGBX1010102,
...@@ -195,6 +199,10 @@ static u32 rcar_du_vsp_state_get_format(struct rcar_du_vsp_plane_state *state) ...@@ -195,6 +199,10 @@ static u32 rcar_du_vsp_state_get_format(struct rcar_du_vsp_plane_state *state)
fourcc = DRM_FORMAT_XRGB8888; fourcc = DRM_FORMAT_XRGB8888;
break; break;
case DRM_FORMAT_ABGR8888:
fourcc = DRM_FORMAT_XBGR8888;
break;
case DRM_FORMAT_BGRA8888: case DRM_FORMAT_BGRA8888:
fourcc = DRM_FORMAT_BGRX8888; fourcc = DRM_FORMAT_BGRX8888;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment