ecore-drm2: Add fields to plane structure for current, next, pending
authorChris Michael <cp.michael@samsung.com>
Tue, 28 Mar 2017 15:18:05 +0000 (11:18 -0400)
committerChris Michael <cp.michael@samsung.com>
Tue, 18 Apr 2017 11:55:10 +0000 (07:55 -0400)
FBOs

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm2/ecore_drm2_plane.c
src/lib/ecore_drm2/ecore_drm2_private.h

index d22bda7..720a610 100644 (file)
@@ -99,9 +99,9 @@ out:
    pstate->sw.value = fb->w << 16;
    pstate->sh.value = fb->h << 16;
 
-   plane->type = pstate->type.value;
-   plane->qfb = fb;
    plane->state = pstate;
+   plane->type = pstate->type.value;
+   plane->current = fb;
 
    DBG("FB %d assigned to Plane %d", fb->id, pstate->obj_id);
    output->planes = eina_list_append(output->planes, plane);
index e6dde22..7bc69bf 100644 (file)
@@ -708,8 +708,7 @@ struct _Ecore_Drm2_Fb
 struct _Ecore_Drm2_Plane
 {
    int type;
-   Ecore_Drm2_Fb *fb; // current fbo
-   Ecore_Drm2_Fb *qfb; // queued fbo
+   Ecore_Drm2_Fb *current, *next, *pending;
 # ifdef HAVE_ATOMIC_DRM
    Ecore_Drm2_Plane_State *state;
 # endif