check destination with max_input is wrong.
Change-Id: If5499b0bc61c84f2b91b641b1974b29b6c042215
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
return -EINVAL;
}
- if (drm_rect_width(dest) >> 16 > vop_data->max_input_fb.width ||
- drm_rect_height(dest) >> 16 > vop_data->max_input_fb.height) {
- DRM_ERROR("Invalid destination: %dx%d. max output: %dx%d\n",
- drm_rect_width(dest),
- drm_rect_height(dest),
- vop_data->max_output_fb.width,
- vop_data->max_output_fb.height);
- return -EINVAL;
- }
-
/*
* Src.x1 can be odd when do clip, but yuv plane start point
* need align with 2 pixel.