Merge "disp: msm: sde: reset plane cache state on plane disable"

This commit is contained in:
qctecmdr
2022-04-11 16:47:36 -07:00
committed by Gerrit - the friendly Code Review server
2 changed files with 20 additions and 16 deletions

View File

@@ -3495,6 +3495,7 @@ static void _sde_plane_atomic_disable(struct drm_plane *plane,
pstate->multirect_mode);
pstate->pending = true;
pstate->static_cache_state = CACHE_STATE_DISABLED;
if (is_sde_plane_virtual(plane))
multirect_index = SDE_SSPP_RECT_1;
@@ -4350,6 +4351,8 @@ int sde_plane_helper_reset_custom_properties(struct drm_plane *plane,
psde = to_sde_plane(plane);
pstate = to_sde_plane_state(plane_state);
pstate->static_cache_state = CACHE_STATE_DISABLED;
for (prop_idx = 0; prop_idx < PLANE_PROP_COUNT; prop_idx++) {
uint64_t val = pstate->property_values[prop_idx].value;
uint64_t def;