mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Revert "msm_fb: display: remove background invert alpha option for alpha drop pipe"
This reverts commit 0119007a18aae8a8fb43f4320509bda161da4167. CRs-fixed: 461574 Change-Id: Ia768030ec859a4ff38549686936789413826df32 Signed-off-by: Mayank Chopra <makchopra@codeaurora.org> Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
This commit is contained in:
parent
9beb37026c
commit
5e233e2b90
1 changed files with 3 additions and 5 deletions
|
@ -2111,8 +2111,7 @@ void mdp4_mixer_blend_setup(int mixer)
|
|||
blend->bg_alpha = 0x0ff - s_pipe->alpha;
|
||||
blend->fg_alpha = s_pipe->alpha;
|
||||
blend->co3_sel = 1; /* use fg alpha */
|
||||
pr_debug("%s: bg alpha %d, fg alpha %d\n",
|
||||
__func__, blend->bg_alpha, blend->fg_alpha);
|
||||
|
||||
if (s_pipe->is_fg) {
|
||||
if (s_pipe->alpha == 0xff) {
|
||||
blend->solidfill = 1;
|
||||
|
@ -2124,11 +2123,10 @@ void mdp4_mixer_blend_setup(int mixer)
|
|||
if (!(s_pipe->flags & MDP_BLEND_FG_PREMULT))
|
||||
blend->op |=
|
||||
MDP4_BLEND_FG_ALPHA_FG_PIXEL;
|
||||
else
|
||||
blend->fg_alpha = 0xff;
|
||||
blend->op |= MDP4_BLEND_BG_INV_ALPHA;
|
||||
} else
|
||||
blend->op = MDP4_BLEND_BG_ALPHA_FG_CONST;
|
||||
|
||||
blend->op |= MDP4_BLEND_BG_INV_ALPHA;
|
||||
} else if (d_alpha) {
|
||||
ptype = mdp4_overlay_format2type(s_pipe->src_format);
|
||||
if (ptype == OVERLAY_TYPE_VIDEO &&
|
||||
|
|
Loading…
Reference in a new issue