From 014e84d8fa079088509c3fb3679bb4ce0f39764b Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Fri, 28 Apr 2017 15:17:07 -0500 Subject: [PATCH] ecore_drm2: Store output in plane structure This will simplify a bunch of API that would otherwise have to pass in both output and plane - and in some cases we might not have the output handy anyway. --- src/lib/ecore_drm2/ecore_drm2_plane.c | 1 + src/lib/ecore_drm2/ecore_drm2_private.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lib/ecore_drm2/ecore_drm2_plane.c b/src/lib/ecore_drm2/ecore_drm2_plane.c index f1cb78157b..943104fd00 100644 --- a/src/lib/ecore_drm2/ecore_drm2_plane.c +++ b/src/lib/ecore_drm2/ecore_drm2_plane.c @@ -104,6 +104,7 @@ out: plane->state = pstate; plane->type = pstate->type.value; + plane->output = output; DBG("FB %d assigned to Plane %d", fb->id, pstate->obj_id); output->planes = eina_list_append(output->planes, plane); diff --git a/src/lib/ecore_drm2/ecore_drm2_private.h b/src/lib/ecore_drm2/ecore_drm2_private.h index d8e363b611..4cec4e3208 100644 --- a/src/lib/ecore_drm2/ecore_drm2_private.h +++ b/src/lib/ecore_drm2/ecore_drm2_private.h @@ -711,6 +711,7 @@ struct _Ecore_Drm2_Plane { int type; Ecore_Drm2_Plane_State *state; + Ecore_Drm2_Output *output; }; struct _Ecore_Drm2_Output_Mode