drm/mediatek: Add RGB[A] variants to published plane formats
authorSean Paul <seanpaul@chromium.org>
Wed, 23 Oct 2019 19:51:17 +0000 (15:51 -0400)
committerCK Hu <ck.hu@mediatek.com>
Wed, 6 Nov 2019 07:46:42 +0000 (15:46 +0800)
These formats are handled in the rdma code, but for some reason they're
not published as supported formats for the planes. So add them to the
list.

Cc: Nicolas Boichat <drinkcat@chromium.org>
Cc: Daniele Castagna <dcastagna@chromium.org>
Cc: Miguel Casas <mcasas@chromium.org>
Tested-by: Miguel Casas <mcasas@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_drm_plane.c

index 584a9ecadce624f1ef0775e7b3ac7dc63f5b1842..49d59470cc1140cb4041752d7936acdbcbd7cb4c 100644 (file)
 static const u32 formats[] = {
        DRM_FORMAT_XRGB8888,
        DRM_FORMAT_ARGB8888,
+       DRM_FORMAT_BGRX8888,
+       DRM_FORMAT_BGRA8888,
+       DRM_FORMAT_ABGR8888,
+       DRM_FORMAT_XBGR8888,
+       DRM_FORMAT_RGB888,
+       DRM_FORMAT_BGR888,
        DRM_FORMAT_RGB565,
        DRM_FORMAT_UYVY,
        DRM_FORMAT_YUYV,