aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-11-06 09:00:52 -0500
committerChris Michael <cp.michael@samsung.com>2018-01-31 11:18:02 -0500
commita53b9f8eb81d697461cae01dde1856aa9316cf76 (patch)
tree7930122b11aa803d0dfaba3a0ce2c997b9345e7b
parentecore-drm2: Add API function to retrieve output user data (diff)
downloadefl-a53b9f8eb81d697461cae01dde1856aa9316cf76.tar.gz
ecore-drm2: Pass the actual output as data to drmModePageFlip function
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_fb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c
index 85331aeaa2..2c9cd8d1f1 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -449,8 +449,7 @@ _fb_atomic_flip(Ecore_Drm2_Output *output)
res =
sym_drmModeAtomicCommit(output->fd,
- output->prep.atomic_req, flags,
- output->user_data);
+ output->prep.atomic_req, flags, output);
if (res < 0)
{
ERR("Failed Atomic Commit: %m");
@@ -502,8 +501,7 @@ _fb_flip(Ecore_Drm2_Output *output)
static Eina_Bool bugged_about_bug = EINA_FALSE;
repeat = EINA_FALSE;
ret = sym_drmModePageFlip(fb->fd, output->crtc_id, fb->id,
- DRM_MODE_PAGE_FLIP_EVENT,
- output->user_data);
+ DRM_MODE_PAGE_FLIP_EVENT, output);
/* Some drivers (RPI - looking at you) are broken and produce
* flip events before they are ready for another flip, so be
* a little robust in the face of badness and try a few times