_is_reset_to_client_needed: check the is_device_to_client_transition variable for... 19/165119/1
authorKonstantin Drabeniuk <k.drabeniuk@samsung.com>
Tue, 26 Dec 2017 08:48:25 +0000 (10:48 +0200)
committerKonstantin Drabeniuk <k.drabeniuk@samsung.com>
Tue, 26 Dec 2017 08:48:25 +0000 (10:48 +0200)
Change-Id: I94a73939ef3e5ffb842b5b6d35b0e2fc6a2173b7
Signed-off-by: Konstantin Drabeniuk <k.drabeniuk@samsung.com>
src/tdm_exynos_output.c

index d182eaec38bb176a7d945ab1bfb0cb4feb5485ef..773ebcc88db04526f51429aba10a6d90dc65ec70 100644 (file)
@@ -1744,12 +1744,11 @@ _is_reset_to_client_needed(struct list_head *hwc_wnds)
        tdm_exynos_hwc_window_data *hwc_window_data = NULL;
 
        LIST_FOR_EACH_ENTRY(hwc_window_data, hwc_wnds, link) {
-               if (hwc_window_data->client_type == TDM_COMPOSITION_NONE) {
-                       if (hwc_window_data->is_device_to_client_transition)
-                               return 1;
+               if (hwc_window_data->is_device_to_client_transition)
+                       return 1;
 
+               if (hwc_window_data->client_type == TDM_COMPOSITION_NONE)
                        continue;
-               }
 
                if (hwc_window_data->grabbed_layer_zpos >= 0 &&
                                hwc_window_data->validated_type == TDM_COMPOSITION_CLIENT)