set pending_flip before calling tdm_output_commit 07/72407/2 accepted/tizen/common/20160601.134157 accepted/tizen/ivi/20160602.023134 accepted/tizen/mobile/20160602.023304 accepted/tizen/tv/20160602.022946 accepted/tizen/wearable/20160602.023105 submit/tizen/20160601.093131
authorBoram Park <boram1288.park@samsung.com>
Wed, 1 Jun 2016 00:47:25 +0000 (09:47 +0900)
committerBoram Park <boram1288.park@samsung.com>
Wed, 1 Jun 2016 00:48:02 +0000 (17:48 -0700)
    The commit handler can be called in tdm_output_commit.

Change-Id: I1de00b2877d08bad0456463ea28acf02b047cf57

src/lib/ecore_drm/ecore_drm_display.c

index 7a0f24b..d870f29 100644 (file)
@@ -440,14 +440,14 @@ _ecore_drm_display_fb_send(Ecore_Drm_Device *dev, Ecore_Drm_Fb *fb, Ecore_Drm_Pa
              continue;
           }
 
+        fb->pending_flip = EINA_TRUE;
         ret = tdm_output_commit(hal_output->output, 0, _ecore_drm_display_output_cb_commit, cb);
         if (ret != TDM_ERROR_NONE)
           {
+             fb->pending_flip = EINA_FALSE;
              ERR("Cannot commit crtc %u: err(%d)", output->crtc_id, ret);
              continue;
           }
-
-        fb->pending_flip = EINA_TRUE;
      }
 
    while (fb->pending_flip)