diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2017-06-16 16:07:15 -0500 |
---|---|---|
committer | Derek Foreman <derekf@osg.samsung.com> | 2017-06-23 08:15:41 -0500 |
commit | a8c7b89cb7a3a8136102f340b6838a6a05fcb231 (patch) | |
tree | 3784174fb6a7711afa7ca7c6a652da6d9ec0bb4c /src/lib/ecore_drm2/ecore_drm2_private.h | |
parent | be90b91ac125e8ef06a9251f1a31ad7c9a83ce12 (diff) |
ecore_drm2: Move fb from plane state struct to plane struct
The plane state struct needs the fb id for drm updates, and the plane
state can be updated even if it's pointed to by a dead plane.
Dead planes need to keep their fb so we can properly handle the fb
lifetime.
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_private.h')
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_private.h b/src/lib/ecore_drm2/ecore_drm2_private.h index 4837871311..730c7b52ce 100644 --- a/src/lib/ecore_drm2/ecore_drm2_private.h +++ b/src/lib/ecore_drm2/ecore_drm2_private.h | |||
@@ -104,7 +104,6 @@ typedef struct _Ecore_Drm2_Plane_State | |||
104 | 104 | ||
105 | /* these are not part of an atomic state, but we store these here | 105 | /* these are not part of an atomic state, but we store these here |
106 | * so that we do not have to refetch properties when iterating planes */ | 106 | * so that we do not have to refetch properties when iterating planes */ |
107 | Ecore_Drm2_Fb *fb; | ||
108 | uint32_t rotation_map[6]; | 107 | uint32_t rotation_map[6]; |
109 | uint32_t supported_rotations; | 108 | uint32_t supported_rotations; |
110 | 109 | ||
@@ -175,6 +174,7 @@ struct _Ecore_Drm2_Plane | |||
175 | int type; | 174 | int type; |
176 | Ecore_Drm2_Plane_State *state; | 175 | Ecore_Drm2_Plane_State *state; |
177 | Ecore_Drm2_Output *output; | 176 | Ecore_Drm2_Output *output; |
177 | Ecore_Drm2_Fb *fb; | ||
178 | Eina_Bool dead; | 178 | Eina_Bool dead; |
179 | }; | 179 | }; |
180 | 180 | ||