summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_plane.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-05-03 10:51:14 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-05-05 12:53:25 -0500
commit699ed066ea4d57531b5900eff23597ba0dd70017 (patch)
tree7123ff046fe7cabbff091e7140989018a66925b1 /src/lib/ecore_drm2/ecore_drm2_plane.c
parent1d3ad708883df60a6dbae435768fcc4870da6d2b (diff)
ecore_drm2: Require x and y value in plane assign
Saves us a flip test, and gaurantees that we're always testing with a reasonable x, y and not something leftover from a previous assignment.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_plane.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_plane.c b/src/lib/ecore_drm2/ecore_drm2_plane.c
index 2ecf96b19f..cb765edc4b 100644
--- a/src/lib/ecore_drm2/ecore_drm2_plane.c
+++ b/src/lib/ecore_drm2/ecore_drm2_plane.c
@@ -39,7 +39,7 @@ _plane_cursor_size_get(int fd, int *width, int *height)
39} 39}
40 40
41EAPI Ecore_Drm2_Plane * 41EAPI Ecore_Drm2_Plane *
42ecore_drm2_plane_assign(Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb) 42ecore_drm2_plane_assign(Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb, int x, int y)
43{ 43{
44 Eina_List *l; 44 Eina_List *l;
45 Ecore_Drm2_Plane *plane; 45 Ecore_Drm2_Plane *plane;
@@ -102,6 +102,11 @@ out:
102 pstate->sw.value = fb->w << 16; 102 pstate->sw.value = fb->w << 16;
103 pstate->sh.value = fb->h << 16; 103 pstate->sh.value = fb->h << 16;
104 104
105 pstate->cx.value = x;
106 pstate->cy.value = y;
107 pstate->cw.value = fb->w;
108 pstate->ch.value = fb->h;
109
105 plane->state = pstate; 110 plane->state = pstate;
106 plane->type = pstate->type.value; 111 plane->type = pstate->type.value;
107 plane->output = output; 112 plane->output = output;