disp: msm: sde: check all dirty properties during plane update

Previously when updating a plane's dirty features, if the
dirty all flag was set, the optimization was to break early.
This optimization left out color property updates for that plane.
This fix removes the mutex locks in the msm_prop function so
the break optimization is no longer needed. Function callers will
now need to acquire the lock and unlock the property lock when done.
Now the plane will iterate through all dirty properties.

Change-Id: I3114ac44d62ac0f0633897d757b6fd9a5b1f5d2e
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
这个提交包含在:
Samantha Tran
2019-10-25 14:27:04 -07:00
提交者 Gerrit - the friendly Code Review server
父节点 d236dbd5e0
当前提交 4de15bb6ef
修改 4 个文件,包含 9 行新增6 行删除

查看文件

@@ -701,6 +701,7 @@ static int _sde_connector_update_dirty_properties(
c_conn = to_sde_connector(connector);
c_state = to_sde_connector_state(connector->state);
mutex_lock(&c_conn->property_info.property_lock);
while ((idx = msm_property_pop_dirty(&c_conn->property_info,
&c_state->property_state)) >= 0) {
switch (idx) {
@@ -723,6 +724,7 @@ static int _sde_connector_update_dirty_properties(
break;
}
}
mutex_unlock(&c_conn->property_info.property_lock);
/* if colorspace needs to be updated do it first */
if (c_conn->colorspace_updated) {