summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-04-27 15:53:16 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-05-05 12:53:22 -0500
commit6482367aa2010c244bf109c26e0460f34f85332d (patch)
tree11e40e34cf97d60cde8f2e6e84e7f29903b749ab /src/lib/ecore_drm2
parent8d42d7d50aede6df4e03ffa08062405459ef1ca0 (diff)
ecore_drm2: Perform test flip during plane assignment
Make sure we can commit that plane at assign time so when we hook up to the scene graph it knows when it can safely use a plane.
Diffstat (limited to 'src/lib/ecore_drm2')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_plane.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_plane.c b/src/lib/ecore_drm2/ecore_drm2_plane.c
index 155c932bf5..9ebc1d96ff 100644
--- a/src/lib/ecore_drm2/ecore_drm2_plane.c
+++ b/src/lib/ecore_drm2/ecore_drm2_plane.c
@@ -109,6 +109,14 @@ out:
109 DBG("FB %d assigned to Plane %d", fb->id, pstate->obj_id); 109 DBG("FB %d assigned to Plane %d", fb->id, pstate->obj_id);
110 output->planes = eina_list_append(output->planes, plane); 110 output->planes = eina_list_append(output->planes, plane);
111 111
112 if (!_fb_atomic_flip_test(output))
113 {
114 output->planes = eina_list_remove(output->planes, plane);
115 plane->state->in_use = EINA_FALSE;
116 free(plane);
117
118 return NULL;
119 }
112 return plane; 120 return plane;
113} 121}
114 122