return 0;
}
+static int
+_get_number_of_visible_windows(struct list_head *hwc_window_list)
+{
+ int number = 0;
+ tdm_exynos_hwc_window_data *window = NULL;
+
+ LIST_FOR_EACH_ENTRY(window, hwc_window_list, link) {
+ if (window->client_type == TDM_COMPOSITION_NONE)
+ continue;
+ number++;
+ }
+
+ return number;
+}
+
static tdm_error
_tdm_exynos_display_prepare_commit(tdm_exynos_output_data *output_data) {
RETURN_VAL_IF_FAIL(output_data->need_validate == 0, TDM_ERROR_OPERATION_FAILED);
+ if (!_get_number_of_visible_windows(&output_data->hwc_window_list))
+ output_data->need_target_window = 1;
+
/* set target hwc window */
if (output_data->need_target_window) {
layer = _exynos_output_get_layer(output_data, primary_layer_zpos);
return "unknown";
}
-static int
-_get_number_of_visible_windows(struct list_head *hwc_window_list)
-{
- int number = 0;
- tdm_exynos_hwc_window_data *window = NULL;
-
- LIST_FOR_EACH_ENTRY(window, hwc_window_list, link) {
- if (window->client_type == TDM_COMPOSITION_NONE)
- continue;
- number++;
- }
-
- return number;
-}
-
/* If there is only 1 visible hwc_window it should be placed on the
* primary layer. The primary layer should always be used.
*/