From fddbb906d8f10aa1f6c822437bc0403c0c93e789 Mon Sep 17 00:00:00 2001 From: Junkyeong Kim Date: Fri, 7 Feb 2020 19:12:40 +0900 Subject: [PATCH] e_hwc_windows: set wait commit flag to FALSE if pp zoom unsetted Change-Id: I09f537b82abd83cf47eee7e55561b88d17356651 Signed-off-by: Junkyeong Kim --- src/bin/e_hwc_windows.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/bin/e_hwc_windows.c b/src/bin/e_hwc_windows.c index 33cdd9aa3c..5548f76fe2 100644 --- a/src/bin/e_hwc_windows.c +++ b/src/bin/e_hwc_windows.c @@ -1577,12 +1577,30 @@ _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); + /* if pp_set is false, skip the commit */ + if (!hwc->pp_set) + { + if (hwc->tpp) + { + tdm_pp_destroy(hwc->tpp); + hwc->tpp = NULL; + } + + hwc->wait_commit = EINA_FALSE; + hwc->pp_commit = EINA_FALSE; + + goto done; + } + output = hwc->output; if (e_output_dpms_get(output)) { _e_hwc_windows_pp_pending_data_remove(hwc); tbm_surface_queue_release(hwc->pp_tqueue, tsurface_dst); + hwc->wait_commit = EINA_FALSE; + hwc->pp_commit = EINA_FALSE; + goto done; } -- 2.34.1