devilhorns pushed a commit to branch feature/wayland/multi-output.

http://git.enlightenment.org/core/efl.git/commit/?id=7cc8504aab5c3987a16919abc8675c5303adcacc

commit 7cc8504aab5c3987a16919abc8675c5303adcacc
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Feb 21 14:20:06 2018 -0500

    ecore-drm2: Fix drmModeSetCrtc call during fb flip
    
    drmModeSetCrtc's x & y values are actually offsets into the
    framebuffer memory. As such, we should not be sending it output
    position here.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_drm2/ecore_drm2_fb.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c 
b/src/lib/ecore_drm2/ecore_drm2_fb.c
index 398db2e21d..500e46d6eb 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -475,7 +475,7 @@ _fb_flip(Ecore_Drm2_Output *output)
      {
         ret =
           sym_drmModeSetCrtc(fb->fd, output->crtc_id, fb->id,
-                             output->x, output->y, &output->conn_id, 1,
+                             0, 0, &output->conn_id, 1,
                              &output->current_mode->info);
         if (ret)
           {
@@ -500,10 +500,11 @@ _fb_flip(Ecore_Drm2_Output *output)
    do
      {
         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);
+                                  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

-- 


Reply via email to