diff options
| author | Sree Sesha Aravind Vadrevu <svadrevu@codeaurora.org> | 2013-08-01 19:02:55 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:19:34 -0700 |
| commit | 82d10a6166dbb683eb4fb007c2fa87927414fd76 (patch) | |
| tree | 078136fcb9e5d2966dd28d89cdeb4a932d99c907 /drivers | |
| parent | 8c53f44c079ded73cec2d890eb60a2995856c61c (diff) | |
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 <svadrevu@codeaurora.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_pp.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) | |
