All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: Put damage blob when destroy plane state
@ 2018-12-21 19:35 Deepak Rawat
  2018-12-21 19:55 ` Thomas Hellstrom
  0 siblings, 1 reply; 6+ messages in thread
From: Deepak Rawat @ 2018-12-21 19:35 UTC (permalink / raw)
  To: thellstrom, dri-devel, linux-graphics-maintainer
  Cc: Daniel Vetter, Deepak Rawat

Somehow the code to put the damage blob on destroy plane state and set
the blob to NULL when duplicate plane state was not merged. May be
because the files are refactored since the patch was written. With this
fix add those.

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Deepak Rawat <drawat@vmware.com>
---
 drivers/gpu/drm/drm_atomic_state_helper.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/drm_atomic_state_helper.c b/drivers/gpu/drm/drm_atomic_state_helper.c
index 3ba996069d69..709355c6bac6 100644
--- a/drivers/gpu/drm/drm_atomic_state_helper.c
+++ b/drivers/gpu/drm/drm_atomic_state_helper.c
@@ -241,6 +241,7 @@ void __drm_atomic_helper_plane_duplicate_state(struct drm_plane *plane,
 
 	state->fence = NULL;
 	state->commit = NULL;
+	state->fb_damage_clips = NULL;
 }
 EXPORT_SYMBOL(__drm_atomic_helper_plane_duplicate_state);
 
@@ -285,6 +286,8 @@ void __drm_atomic_helper_plane_destroy_state(struct drm_plane_state *state)
 
 	if (state->commit)
 		drm_crtc_commit_put(state->commit);
+
+	drm_property_blob_put(state->fb_damage_clips);
 }
 EXPORT_SYMBOL(__drm_atomic_helper_plane_destroy_state);
 
-- 
2.17.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-12-27 11:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-21 19:35 [PATCH] drm: Put damage blob when destroy plane state Deepak Rawat
2018-12-21 19:55 ` Thomas Hellstrom
2018-12-24 10:49   ` Daniel Vetter
2018-12-25 15:01     ` Thomas Hellstrom
2018-12-26 17:50       ` Deepak Singh Rawat
2018-12-27 11:57         ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.