msm: display: Fix blend configuration for video layer with MDP composition

With video layer in MDP composition, there is no need to apply destination
over blend rule, as z-order of layers take care of proper staging of layers
by default. Apply constant blend to the video layer when in MDP composition

CRs-fixed: 437965
Change-Id: I7476659f12cdf06018bf6ace829a836c86ae97e8
Signed-off-by: Mayank Chopra <makchopra@codeaurora.org>
This commit is contained in:
Mayank Chopra 2013-01-07 21:21:59 +05:30 committed by Iliyan Malchev
parent 374c1baf93
commit 5e8146b46b

View file

@ -1976,7 +1976,8 @@ void mdp4_mixer_blend_setup(int mixer)
s_pipe->alpha_enable && s_pipe->alpha_enable &&
((s_pipe->op_mode & MDP4_OP_SCALEY_EN) || ((s_pipe->op_mode & MDP4_OP_SCALEY_EN) ||
(s_pipe->op_mode & MDP4_OP_SCALEX_EN)) && (s_pipe->op_mode & MDP4_OP_SCALEX_EN)) &&
!(s_pipe->op_mode & MDP4_OP_SCALEY_PIXEL_RPT)) !(s_pipe->op_mode & (MDP4_OP_SCALEX_PIXEL_RPT |
MDP4_OP_SCALEY_PIXEL_RPT)))
alpha_drop = 1; alpha_drop = 1;
d_pipe = mdp4_background_layer(mixer, s_pipe); d_pipe = mdp4_background_layer(mixer, s_pipe);
@ -2012,7 +2013,8 @@ void mdp4_mixer_blend_setup(int mixer)
blend->op = MDP4_BLEND_BG_ALPHA_FG_CONST; blend->op = MDP4_BLEND_BG_ALPHA_FG_CONST;
} else if (d_alpha) { } else if (d_alpha) {
ptype = mdp4_overlay_format2type(s_pipe->src_format); ptype = mdp4_overlay_format2type(s_pipe->src_format);
if (ptype == OVERLAY_TYPE_VIDEO) { if (ptype == OVERLAY_TYPE_VIDEO &&
(!(s_pipe->flags & MDP_BACKEND_COMPOSITION))) {
blend->op = (MDP4_BLEND_FG_ALPHA_BG_PIXEL | blend->op = (MDP4_BLEND_FG_ALPHA_BG_PIXEL |
MDP4_BLEND_FG_INV_ALPHA); MDP4_BLEND_FG_INV_ALPHA);
if (!(s_pipe->flags & MDP_BLEND_FG_PREMULT)) if (!(s_pipe->flags & MDP_BLEND_FG_PREMULT))