tdm_sprd_hwc_window_data *hwc_window_data = NULL;
tdm_sprd_layer_data *layer_data = NULL;
int use_layers_zpos[NUM_LAYERS] = {0,};
- int i;
+ int lzpos = 0;
/* set target hwc window to the layer */
if (hwc_data->need_target_window) {
/* set the hwc_windows to the layers */
LIST_FOR_EACH_ENTRY_REV(hwc_window_data, &hwc_data->hwc_window_list, link) {
if (hwc_window_data->validated_type == TDM_HWC_WIN_COMPOSITION_NONE ||
- hwc_window_data->validated_type == TDM_HWC_WIN_COMPOSITION_CLIENT)
+ hwc_window_data->validated_type == TDM_HWC_WIN_COMPOSITION_CLIENT)
continue;
+
if (hwc_window_data == hwc_data->target_hwc_window)
continue;
}
/* unset the unused layers */
- for (i = 0; i < NUM_LAYERS; i++) {
- if (use_layers_zpos[i])
+ for (lzpos = 0; lzpos < NUM_LAYERS; lzpos++) {
+ if (use_layers_zpos[lzpos])
continue;
- layer_data = tdm_sprd_output_get_layer(hwc_data->output_data, use_layers_zpos[i]);
+ layer_data = tdm_sprd_output_get_layer(hwc_data->output_data, use_layers_zpos[lzpos]);
_sprd_hwc_layer_attach_window(layer_data, NULL);
}
+ /* for debug */
+ for (lzpos = NUM_LAYERS -1 ; lzpos >= 0; lzpos--) {
+ if (use_layers_zpos[lzpos])
+ TDM_DBG(" lzpos(%d) : %s", lzpos, use_layers_zpos[lzpos] ? "SET" : "UNSET");
+ }
+
return TDM_ERROR_NONE;
}