msm: mdss: fix layer skipping due to dirty pipe

Pipe is marked dirty if it was newly allocated during validate. This
prevents unintentional staging for dirty pipes to HW. However when
the same pipe is used again with good configuration, dirty flag should
be reset. This is missing and leads to skipping of certain layers and
flooding of error logs. Fix this by resting dirty flag when pipe is
successfully validated.

Change-Id: I2d64ecbaaa8968ee7322270c93f5bf5c3e5c90e9
Signed-off-by: Ujwal Patel <ujwalp@codeaurora.org>
This commit is contained in:
Ujwal Patel 2015-04-21 09:01:02 -07:00 committed by David Keitel
parent 28587990fd
commit 3574b6767f

View file

@ -873,8 +873,10 @@ static struct mdss_mdp_pipe *__assign_pipe_for_layer(
mutex_unlock(&mdp5_data->list_lock);
end:
if (!IS_ERR_OR_NULL(pipe))
if (!IS_ERR_OR_NULL(pipe)) {
pipe->dirty = false;
pipe->params_changed++;
}
return pipe;
}