devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=44d5c855e08d3e5034277b0047a444d1b2e55a9a

commit 44d5c855e08d3e5034277b0047a444d1b2e55a9a
Author: Chris Michael <[email protected]>
Date:   Mon Mar 27 13:28:06 2017 -0400

    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 <[email protected]>
---
 src/lib/ecore_drm2/ecore_drm2_plane.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/lib/ecore_drm2/ecore_drm2_plane.c 
b/src/lib/ecore_drm2/ecore_drm2_plane.c
index 3df0cbb..ef7d813 100644
--- a/src/lib/ecore_drm2/ecore_drm2_plane.c
+++ b/src/lib/ecore_drm2/ecore_drm2_plane.c
@@ -91,6 +91,14 @@ out:
    plane = calloc(1, sizeof(Ecore_Drm2_Plane));
    if (!plane) return NULL;
 
+   pstate->cid.value = output->crtc_id;
+   pstate->fid.value = fb->id;
+
+   pstate->sx.value = 0;
+   pstate->sy.value = 0;
+   pstate->sw.value = fb->w << 16;
+   pstate->sh.value = fb->h << 16;
+
    plane->type = pstate->type.value;
    plane->qfb = fb;
    plane->state = pstate;

-- 


Reply via email to