Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2b63443 authored by Jin Li's avatar Jin Li
Browse files

drm/sde: add support for XBGR8888 and BGRX8888 format



Those two color formats were missing from the catalog, which
causes failure on test suite.

Change-Id: I5592a4e5305fa387c5c626e35acfeb0e34935ff2
Signed-off-by: default avatarJin Li <jinl@codeaurora.org>
parent 9a80ef9a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -130,6 +130,12 @@ static const struct sde_format sde_format_map[] = {
		false, 4, 0,
		SDE_FETCH_LINEAR, 1),

	INTERLEAVED_RGB_FMT(XBGR8888,
		COLOR_8BIT, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
		C2_R_Cr, C0_G_Y, C1_B_Cb, C3_ALPHA, 4,
		false, 4, 0,
		SDE_FETCH_LINEAR, 1),

	INTERLEAVED_RGB_FMT(XRGB8888,
		COLOR_8BIT, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
		C1_B_Cb, C0_G_Y, C2_R_Cr, C3_ALPHA, 4,
+4 −0
Original line number Diff line number Diff line
@@ -92,6 +92,8 @@ static const struct sde_format_extended plane_formats[] = {
	{DRM_FORMAT_XBGR4444, 0},
	{DRM_FORMAT_RGBX4444, 0},
	{DRM_FORMAT_BGRX4444, 0},
	{DRM_FORMAT_BGRX8888, 0},
	{DRM_FORMAT_XBGR8888, 0},
	{0, 0},
};

@@ -125,6 +127,8 @@ static const struct sde_format_extended plane_formats_yuv[] = {
	{DRM_FORMAT_XBGR4444, 0},
	{DRM_FORMAT_RGBX4444, 0},
	{DRM_FORMAT_BGRX4444, 0},
	{DRM_FORMAT_BGRX8888, 0},
	{DRM_FORMAT_XBGR8888, 0},

	{DRM_FORMAT_NV12, 0},
	{DRM_FORMAT_NV12, DRM_FORMAT_MOD_QCOM_COMPRESSED},