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:
parent
90629d6dad
commit
aa5020f2af
1 changed files with 1 additions and 0 deletions
|
@ -899,6 +899,7 @@ int mdss_mdp_overlay_pipe_setup(struct msm_fb_data_type *mfd,
|
||||||
if (pipe->type == MDSS_MDP_PIPE_TYPE_CURSOR)
|
if (pipe->type == MDSS_MDP_PIPE_TYPE_CURSOR)
|
||||||
goto cursor_done;
|
goto cursor_done;
|
||||||
|
|
||||||
|
mdss_mdp_pipe_sspp_term(pipe);
|
||||||
if (pipe->flags & MDP_OVERLAY_PP_CFG_EN) {
|
if (pipe->flags & MDP_OVERLAY_PP_CFG_EN) {
|
||||||
memcpy(&pipe->pp_cfg, &req->overlay_pp_cfg,
|
memcpy(&pipe->pp_cfg, &req->overlay_pp_cfg,
|
||||||
sizeof(struct mdp_overlay_pp_params));
|
sizeof(struct mdp_overlay_pp_params));
|
||||||
|
|
Loading…
Add table
Reference in a new issue