All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/atomic: Set current atomic state in drm_private_state
@ 2018-05-30 17:30 Alexandru Gheorghe
  2018-05-30 20:22 ` Ville Syrjälä
  0 siblings, 1 reply; 5+ messages in thread
From: Alexandru Gheorghe @ 2018-05-30 17:30 UTC (permalink / raw)
  To: gustavo, maarten.lankhorst, seanpaul, airlied, dri-devel,
	liviu.dudau, brian.starkey
  Cc: nd, Alexandru Gheorghe

drm_private_state has a back pointer to the drm_atomic_state,
however that was not initialized in drm_atomic_get_private_obj_state
after duplication, as it is the case for other drm atomic getters

Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
---
 drivers/gpu/drm/drm_atomic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index 7d25c42..249aaf8 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -1108,6 +1108,7 @@ drm_atomic_get_private_obj_state(struct drm_atomic_state *state,
 	state->private_objs[index].old_state = obj->state;
 	state->private_objs[index].new_state = obj_state;
 	state->private_objs[index].ptr = obj;
+	obj_state->state = state;
 
 	state->num_private_objs = num_objs;
 
-- 
2.7.4

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

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

end of thread, other threads:[~2018-06-17  8:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-30 17:30 [PATCH] drm/atomic: Set current atomic state in drm_private_state Alexandru Gheorghe
2018-05-30 20:22 ` Ville Syrjälä
2018-05-31  9:56   ` Alexandru-Cosmin Gheorghe
2018-06-15 20:38   ` Ville Syrjälä
2018-06-17  8:23     ` Alexandru-Cosmin Gheorghe

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.