From ffe67c4cf892ff7520714ff695c039d7a1368ca0 Mon Sep 17 00:00:00 2001 From: Naseer Ahmed Date: Tue, 1 Nov 2016 10:37:40 -0400 Subject: [PATCH] mdss: Fix solid fill unpack pattern Most users expect RGB order instead of RBG. When userspace gives an ARGB color, the blue and green channels are swapped. Adjust pattern to match ARGB instead of ARBG. CRs-Fixed: 1045472 1084507 Change-Id: I413ded858df41496d26362602abf3eb40c3cc1ed Signed-off-by: Naseer Ahmed --- drivers/video/fbdev/msm/mdss_mdp_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/msm/mdss_mdp_pipe.c b/drivers/video/fbdev/msm/mdss_mdp_pipe.c index 8f211a977aa4..1b04e783ac18 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_pipe.c +++ b/drivers/video/fbdev/msm/mdss_mdp_pipe.c @@ -2324,7 +2324,7 @@ static int mdss_mdp_pipe_solidfill_setup(struct mdss_mdp_pipe *pipe) /* support ARGB color format only */ unpack = (C3_ALPHA << 24) | (C2_R_Cr << 16) | - (C1_B_Cb << 8) | (C0_G_Y << 0); + (C0_G_Y << 8) | (C1_B_Cb << 0); if (pipe->scaler.enable) opmode |= (1 << 31);