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

http://git.enlightenment.org/core/efl.git/commit/?id=28a51bee88b13718416b53427f28007f268bf6fc

commit 28a51bee88b13718416b53427f28007f268bf6fc
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
---
 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