diff options
| author | Benet Clark <benetc@codeaurora.org> | 2015-01-16 15:40:10 -0800 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:38:16 -0700 |
| commit | aa5020f2af6789b99cb5ec4cd6035dd6204178cd (patch) | |
| tree | 439c0a1dec1acb09ca3e10fef502f645543cb7dc | |
| parent | 90629d6dad020b8b02af45a74e41c1ddb7e6836f (diff) | |
msm: mdss: Clear PP pipe resources before copying new userspace config
During the pipe setup function, we copy any PP related parameters from
userspace to the pipe cache. We currently do not clear the cache
beforehand. In cases where the pipe is being reconfigured, stale, invalid
values might still be present in the cache since the last time the pipe
was configured. These values need to be cleared before accepting a new
config.
Change-Id: I0d9a51052bb738f599f386d39cb9de5509aae7ac
Signed-off-by: Benet Clark <benetc@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_mdp_overlay.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp_overlay.c b/drivers/video/fbdev/msm/mdss_mdp_overlay.c index 58598ebb538b..a0b09afd30d8 100644 --- a/drivers/video/fbdev/msm/mdss_mdp_overlay.c +++ b/drivers/video/fbdev/msm/mdss_mdp_overlay.c @@ -899,6 +899,7 @@ int mdss_mdp_overlay_pipe_setup(struct msm_fb_data_type *mfd, if (pipe->type == MDSS_MDP_PIPE_TYPE_CURSOR) goto cursor_done; + mdss_mdp_pipe_sspp_term(pipe); if (pipe->flags & MDP_OVERLAY_PP_CFG_EN) { memcpy(&pipe->pp_cfg, &req->overlay_pp_cfg, sizeof(struct mdp_overlay_pp_params)); |
