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

Commit 51944c53 authored by Lloyd Atkinson's avatar Lloyd Atkinson
Browse files

drm/msm/sde: fix color component order for 3 planar formats



Fix the color component order for YUV and YVU 420 3 plane
formats which were incorrectly swapped such that the Y and
color planes were interchanged.

CRs-Fixed: 2005386
Change-Id: I152ad476a71b2ae8b1aeb3bfcb3d492e925713f5
Signed-off-by: default avatarLloyd Atkinson <latkinso@codeaurora.org>
parent 3a641f49
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -396,13 +396,13 @@ static const struct sde_format sde_format_map[] = {

	PLANAR_YUV_FMT(YUV420,
		0, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
		C0_G_Y, C1_B_Cb, C2_R_Cr,
		C2_R_Cr, C1_B_Cb, C0_G_Y,
		false, SDE_CHROMA_420, 1, SDE_FORMAT_FLAG_YUV,
		SDE_FETCH_LINEAR, 3),

	PLANAR_YUV_FMT(YVU420,
		0, COLOR_8BIT, COLOR_8BIT, COLOR_8BIT,
		C0_G_Y, C2_R_Cr, C1_B_Cb,
		C1_B_Cb, C2_R_Cr, C0_G_Y,
		false, SDE_CHROMA_420, 1, SDE_FORMAT_FLAG_YUV,
		SDE_FETCH_LINEAR, 3),
};