From dca7ee656da208866b1595e9965ebdb5fea00f48 Mon Sep 17 00:00:00 2001 From: Mayank Chopra Date: Fri, 12 Oct 2012 20:51:47 +0530 Subject: [PATCH] msm_fb: display: Add alpha enable check in blend FIR and M/N scalar when used for downscaling, drops alpha channel of the given layer. To notify this, alpha_drop flag is updated accordingly. This flag need not be checked for layers with no alpha plane. In some scenarios alpha_drop may get enabled for the layers with no alpha plane and cause issues realted to blend composition of layers. Check for setting alpha_drop only if source ayer has alpha plane. Change-Id: Ie64b30c045a78d0d68eb9efacc76902afae7850d Signed-off-by: Mayank Chopra --- drivers/video/msm/mdp4_overlay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/msm/mdp4_overlay.c b/drivers/video/msm/mdp4_overlay.c index 3c1ea79488bb..9e5f2a33165c 100644 --- a/drivers/video/msm/mdp4_overlay.c +++ b/drivers/video/msm/mdp4_overlay.c @@ -1932,6 +1932,7 @@ void mdp4_mixer_blend_setup(int mixer) alpha_drop = 0; /* per stage */ /* alpha channel is lost on VG pipe when using QSEED or M/N */ if (s_pipe->pipe_type == OVERLAY_TYPE_VIDEO && + 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))