summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaseer Ahmed <naseer@codeaurora.org>2016-11-01 10:37:40 -0400
committerNaseer Ahmed <naseer@codeaurora.org>2016-11-02 11:24:42 -0400
commitffe67c4cf892ff7520714ff695c039d7a1368ca0 (patch)
tree9d17161626f0d7fda080e41baaa3fef10cac11f0
parent9a5e4de1022b15364b14eee9bb09cfcda1601eb7 (diff)
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 <naseer@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp_pipe.c2
1 files changed, 1 insertions, 1 deletions
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);