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>
This commit is contained in:
Benet Clark 2015-01-16 15:40:10 -08:00 committed by David Keitel
parent 90629d6dad
commit aa5020f2af

View file

@ -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));