|
@@ -602,6 +602,7 @@ static int sde_kms_prepare_secure_transition(struct msm_kms *kms,
|
|
|
{
|
|
|
struct drm_crtc *crtc;
|
|
|
struct drm_crtc_state *old_crtc_state;
|
|
|
+ struct drm_plane_state *old_plane_state, *new_plane_state;
|
|
|
|
|
|
struct drm_plane *plane;
|
|
|
struct drm_plane_state *plane_state;
|
|
@@ -663,6 +664,9 @@ static int sde_kms_prepare_secure_transition(struct msm_kms *kms,
|
|
|
if (ops & SDE_KMS_OPS_CLEANUP_PLANE_FB) {
|
|
|
SDE_DEBUG("cleanup planes\n");
|
|
|
drm_atomic_helper_cleanup_planes(dev, state);
|
|
|
+ for_each_oldnew_plane_in_state(state, plane,
|
|
|
+ old_plane_state, new_plane_state, i)
|
|
|
+ sde_plane_destroy_fb(old_plane_state);
|
|
|
}
|
|
|
if (ops & SDE_KMS_OPS_SECURE_STATE_CHANGE) {
|
|
|
SDE_DEBUG("secure ctrl\n");
|