e_hwc_windows: change pp_commit flag false setting location 83/234683/2
authorJunkyeong Kim <jk0430.kim@samsung.com>
Thu, 28 May 2020 04:14:02 +0000 (13:14 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Thu, 28 May 2020 04:15:43 +0000 (13:15 +0900)
fix pp destroy fail error.
sometimes pp destroy is cannot be called cause of inappropriate pp_commit flag false set location.

Change-Id: I8019d43aefebdf9abe0d75a916cf93d8f8d6ea97
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/bin/e_hwc_windows.c

index 2acf170..d11b1f9 100644 (file)
@@ -1365,7 +1365,6 @@ _e_hwc_windows_pp_output_commit_handler(tdm_output *toutput, unsigned int sequen
 
    _e_hwc_windows_commit_data_release(hwc, sequence, tv_sec, tv_usec);
    hwc->wait_commit = EINA_FALSE;
-   hwc->pp_commit = EINA_FALSE;
 
    /* layer already resetted */
    if (hwc->pp_output_commit_data)
@@ -1462,7 +1461,6 @@ fail:
 
    _e_hwc_windows_commit_data_release(hwc, 0, 0, 0);
    hwc->wait_commit = EINA_FALSE;
-   hwc->pp_commit = EINA_FALSE;
 
    return EINA_FALSE;
 }
@@ -1526,6 +1524,8 @@ _e_hwc_windows_pp_commit_handler(tdm_pp *pp, tbm_surface_h tsurface_src, tbm_sur
    EHWSTRACE("!!!!!!!! HWC PP Commit Handler !!!!!!!!", NULL, hwc);
    EHWSTRACE("   tsurface src(%p) dst(%p)", NULL, hwc, tsurface_src, tsurface_dst);
 
+   hwc->pp_commit = EINA_FALSE;
+
    /* if pp_set is false, skip the commit */
    if (!hwc->pp_set)
      {
@@ -1536,7 +1536,6 @@ _e_hwc_windows_pp_commit_handler(tdm_pp *pp, tbm_surface_h tsurface_src, tbm_sur
           }
         _e_hwc_windows_commit_data_release(hwc, 0, 0, 0);
         hwc->wait_commit = EINA_FALSE;
-        hwc->pp_commit = EINA_FALSE;
 
         goto done;
      }
@@ -1546,9 +1545,7 @@ _e_hwc_windows_pp_commit_handler(tdm_pp *pp, tbm_surface_h tsurface_src, tbm_sur
      {
         tbm_surface_queue_release(hwc->pp_tqueue, tsurface_dst);
         _e_hwc_windows_commit_data_release(hwc, 0, 0, 0);
-
         hwc->wait_commit = EINA_FALSE;
-        hwc->pp_commit = EINA_FALSE;
 
         goto done;
      }