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.
This commit is contained in:
Derek Foreman 2017-04-28 15:17:07 -05:00
parent aae1c50dd3
commit 014e84d8fa
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -711,6 +711,7 @@ struct _Ecore_Drm2_Plane
{
int type;
Ecore_Drm2_Plane_State *state;
Ecore_Drm2_Output *output;
};
struct _Ecore_Drm2_Output_Mode