From 82d10a6166dbb683eb4fb007c2fa87927414fd76 Mon Sep 17 00:00:00 2001 From: Sree Sesha Aravind Vadrevu Date: Thu, 1 Aug 2013 19:02:55 -0700 Subject: msm: mdss: Change the Alpha scaling type to bilinear Currently, for Alpha plane the filter used is nearest due to which there is an aliasing effect. Using the same filter as graphics core which is bilinear, the aliasing effect is avoided. CRs-fixed: 517627 Change-Id: Ifb4629ddcea1ac447d151469b1f56e3400b7fac0 Signed-off-by: Sree Sesha Aravind Vadrevu --- drivers/video/fbdev/msm/mdss_mdp_pp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/video/fbdev') diff --git a/drivers/video/fbdev/msm/mdss_mdp_pp.c b/drivers/video/fbdev/msm/mdss_mdp_pp.c index ebbf9e703fb4..03675df499ea 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_pp.c +++ b/drivers/video/fbdev/msm/mdss_mdp_pp.c @@ -684,7 +684,7 @@ static int mdss_mdp_scale_setup(struct mdss_mdp_pipe *pipe) if (src_h <= pipe->dst.h) { scale_config |= /* G/Y, A */ (filter_mode << 10) | - (MDSS_MDP_SCALE_FILTER_NEAREST << 18); + (MDSS_MDP_SCALE_FILTER_BIL << 18); } else scale_config |= /* G/Y, A */ (MDSS_MDP_SCALE_FILTER_PCMN << 10) | @@ -703,7 +703,7 @@ static int mdss_mdp_scale_setup(struct mdss_mdp_pipe *pipe) if (src_h <= pipe->dst.h) scale_config |= /* RGB, A */ (MDSS_MDP_SCALE_FILTER_BIL << 10) | - (MDSS_MDP_SCALE_FILTER_NEAREST << 18); + (MDSS_MDP_SCALE_FILTER_BIL << 18); else scale_config |= /* RGB, A */ (MDSS_MDP_SCALE_FILTER_PCMN << 10) | @@ -737,7 +737,7 @@ static int mdss_mdp_scale_setup(struct mdss_mdp_pipe *pipe) if (src_w <= pipe->dst.w) { scale_config |= /* G/Y, A */ (filter_mode << 8) | - (MDSS_MDP_SCALE_FILTER_NEAREST << 16); + (MDSS_MDP_SCALE_FILTER_BIL << 16); } else scale_config |= /* G/Y, A */ (MDSS_MDP_SCALE_FILTER_PCMN << 8) | @@ -756,7 +756,7 @@ static int mdss_mdp_scale_setup(struct mdss_mdp_pipe *pipe) if (src_w <= pipe->dst.w) scale_config |= /* RGB, A */ (MDSS_MDP_SCALE_FILTER_BIL << 8) | - (MDSS_MDP_SCALE_FILTER_NEAREST << 16); + (MDSS_MDP_SCALE_FILTER_BIL << 16); else scale_config |= /* RGB, A */ (MDSS_MDP_SCALE_FILTER_PCMN << 8) | -- cgit v1.2.3