diff options
author | Chris Michael <cp.michael@samsung.com> | 2017-03-27 13:28:06 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2017-04-18 07:55:10 -0400 |
commit | 44d5c855e08d3e5034277b0047a444d1b2e55a9a (patch) | |
tree | b4c83fa2a80baa5b36b1e0ed02f0de37c17c7d83 /src/lib/ecore_drm2/ecore_drm2_plane.c | |
parent | 19da4706f3763cf2c8eb333fbbc6e31e69d63850 (diff) |
ecore-drm2: Store plane src values on assign
As we will need the plane state source values when we do an atomic
commit, we can store them when plane_assign is called as we already
have the FBO available.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_plane.c')
-rw-r--r-- | src/lib/ecore_drm2/ecore_drm2_plane.c | 8 |
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 3df0cbb63a..ef7d813241 100644 --- a/src/lib/ecore_drm2/ecore_drm2_plane.c +++ b/src/lib/ecore_drm2/ecore_drm2_plane.c | |||
@@ -91,6 +91,14 @@ out: | |||
91 | plane = calloc(1, sizeof(Ecore_Drm2_Plane)); | 91 | plane = calloc(1, sizeof(Ecore_Drm2_Plane)); |
92 | if (!plane) return NULL; | 92 | if (!plane) return NULL; |
93 | 93 | ||
94 | pstate->cid.value = output->crtc_id; | ||
95 | pstate->fid.value = fb->id; | ||
96 | |||
97 | pstate->sx.value = 0; | ||
98 | pstate->sy.value = 0; | ||
99 | pstate->sw.value = fb->w << 16; | ||
100 | pstate->sh.value = fb->h << 16; | ||
101 | |||
94 | plane->type = pstate->type.value; | 102 | plane->type = pstate->type.value; |
95 | plane->qfb = fb; | 103 | plane->qfb = fb; |
96 | plane->state = pstate; | 104 | plane->state = pstate; |