devilhorns pushed a commit to branch feature/wayland/multioutput.

http://git.enlightenment.org/core/efl.git/commit/?id=020caf4aa0e44a2e3318f2633caba08e15699b2d

commit 020caf4aa0e44a2e3318f2633caba08e15699b2d
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Feb 20 10:40:46 2018 -0500

    ecore-drm2: Pass actual output as data to drmModePageFlip and 
drmModeAtomicCommit functions
    
    We pass output as the actual data now so that we can know which output
    it was that the pageflip occured on. This allows us to be more
    specific with ecore_evas_animator_tick function calls in that we can
    pass in the exact output rectangle to it.
---
 src/lib/ecore_drm2/ecore_drm2_fb.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c 
b/src/lib/ecore_drm2/ecore_drm2_fb.c
index 85331aeaa2..398db2e21d 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -413,7 +413,7 @@ _fb_atomic_flip_test(Ecore_Drm2_Output *output)
      }
 
    ret =
-     sym_drmModeAtomicCommit(output->fd, req, flags, NULL);
+     sym_drmModeAtomicCommit(output->fd, req, flags, output);
    if (ret < 0) goto err;
 
    /* clear any previous request */
@@ -450,7 +450,7 @@ _fb_atomic_flip(Ecore_Drm2_Output *output)
    res =
      sym_drmModeAtomicCommit(output->fd,
                              output->prep.atomic_req, flags,
-                             output->user_data);
+                             output);
    if (res < 0)
      {
         ERR("Failed Atomic Commit: %m");
@@ -503,7 +503,7 @@ _fb_flip(Ecore_Drm2_Output *output)
         repeat = EINA_FALSE;
         ret = sym_drmModePageFlip(fb->fd, output->crtc_id, fb->id,
                                   DRM_MODE_PAGE_FLIP_EVENT,
-                                  output->user_data);
+                                  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

-- 


Reply via email to