if video is shown and all ui layers are used by device type,
zpos of target_window is not set.
target_window should be displayed in this case
because vc4 using zpos 0 ui layer by video and ui
Change-Id: I0ff851c7967157947ef063a3d46f90ad84a64e97
case HAL_TDM_HWC_WIN_COMPOSITION_VIDEO:
composited_list[i]->validated_type = HAL_TDM_HWC_WIN_COMPOSITION_VIDEO;
video_count++;
+ num_ui_layers--;
continue;
case HAL_TDM_HWC_WIN_COMPOSITION_CURSOR:
if (set_clients_below) break;
num_ui_layers--;
}
- if (client_count > 0) {
+ if ((client_count > 0) ||
+ ((video_count > 0) && (device_count == NUM_UI_LAYERS))) {
ui_lzpos_bottom++;
num_ui_layers--;
hwc_data->need_target_window = 1;
case TDM_HWC_WIN_COMPOSITION_VIDEO:
composited_list[i]->validated_type = TDM_HWC_WIN_COMPOSITION_VIDEO;
video_count++;
+ num_ui_layers--;
continue;
case TDM_HWC_WIN_COMPOSITION_CURSOR:
if (set_clients_below) break;
num_ui_layers--;
}
- if (client_count > 0) {
+ if ((client_count > 0) ||
+ ((video_count > 0) && (device_count == NUM_UI_LAYERS))) {
ui_lzpos_bottom++;
num_ui_layers--;
hwc_data->need_target_window = 1;