Skip to content

Commit 9701845

Browse files
dhobsongLaurent Pinchart
authored andcommitted
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: Damian Hobson-Garcia <dhobsong@igel.co.jp> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
1 parent 0dfcf80 commit 9701845

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/gpu/drm/renesas/rcar-du/rcar_du_vsp.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ static const u32 rcar_du_vsp_formats[] = {
123123
DRM_FORMAT_RGB888,
124124
DRM_FORMAT_BGRA8888,
125125
DRM_FORMAT_BGRX8888,
126+
DRM_FORMAT_ABGR8888,
127+
DRM_FORMAT_XBGR8888,
126128
DRM_FORMAT_ARGB8888,
127129
DRM_FORMAT_XRGB8888,
128130
DRM_FORMAT_UYVY,
@@ -155,6 +157,8 @@ static const u32 rcar_du_vsp_formats_gen4[] = {
155157
DRM_FORMAT_RGB888,
156158
DRM_FORMAT_BGRA8888,
157159
DRM_FORMAT_BGRX8888,
160+
DRM_FORMAT_ABGR8888,
161+
DRM_FORMAT_XBGR8888,
158162
DRM_FORMAT_ARGB8888,
159163
DRM_FORMAT_XRGB8888,
160164
DRM_FORMAT_RGBX1010102,
@@ -195,6 +199,10 @@ static u32 rcar_du_vsp_state_get_format(struct rcar_du_vsp_plane_state *state)
195199
fourcc = DRM_FORMAT_XRGB8888;
196200
break;
197201

202+
case DRM_FORMAT_ABGR8888:
203+
fourcc = DRM_FORMAT_XBGR8888;
204+
break;
205+
198206
case DRM_FORMAT_BGRA8888:
199207
fourcc = DRM_FORMAT_BGRX8888;
200208
break;

0 commit comments

Comments
 (0)