mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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:
parent
374c1baf93
commit
5e8146b46b
1 changed files with 4 additions and 2 deletions
|
@ -1976,7 +1976,8 @@ void mdp4_mixer_blend_setup(int mixer)
|
|||
s_pipe->alpha_enable &&
|
||||
((s_pipe->op_mode & MDP4_OP_SCALEY_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;
|
||||
|
||||
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;
|
||||
} else if (d_alpha) {
|
||||
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 |
|
||||
MDP4_BLEND_FG_INV_ALPHA);
|
||||
if (!(s_pipe->flags & MDP_BLEND_FG_PREMULT))
|
||||
|
|
Loading…
Reference in a new issue