msm: mdss: check for fb node refcount before calling null commit
Add a frame buffer reference count check before calling null commit to release the free list pipes. This avoids unnecessary flickering on screen if a process tries to open and close the fb node without performing any operation. Change-Id: I96b824edccf27f0ddb796c420ef1feb49f65ddea Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
parent
41211cdb1f
commit
903eef8201
1 changed files with 2 additions and 2 deletions
|
@ -1517,8 +1517,8 @@ static int __mdss_mdp_overlay_release_all(struct msm_fb_data_type *mfd,
|
|||
}
|
||||
}
|
||||
|
||||
if (cnt == 0 && !list_empty(&mdp5_data->pipes_cleanup)) {
|
||||
pr_debug("overlay release on fb%d called without commit!",
|
||||
if (!mfd->ref_cnt && !list_empty(&mdp5_data->pipes_cleanup)) {
|
||||
pr_debug("fb%d:: free pipes present in cleanup list",
|
||||
mfd->index);
|
||||
cnt++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue