do not allow hw layer when the size of window is over the one of output mode resolution
Change-Id: Ib486366000b99853ef1a875a1cc6d18865fc37f1
hwc_window_data->info.dst_pos.y > hwc_window_data->hwc_data->output_data->current_mode->vdisplay)
return 0;
+ /* do not allow hw layer when the size of window is over the one of output mode resolution */
+ if (hwc_window_data->info.dst_pos.w > hwc_window_data->hwc_data->output_data->current_mode->hdisplay ||
+ hwc_window_data->info.dst_pos.h > hwc_window_data->hwc_data->output_data->current_mode->vdisplay)
+ return 0;
+
if (hwc_window_data->info.src_config.pos.w < MIN_WIDTH || hwc_window_data->info.src_config.pos.w % 2)
return 0;