From b2558e44321e0767b370712d20ae1f8f7c45c255 Mon Sep 17 00:00:00 2001 From: Mark Yao Date: Tue, 21 Feb 2017 09:50:07 +0800 Subject: [PATCH] drm/rockchip: fixup input source check check destination with max_input is wrong. Change-Id: If5499b0bc61c84f2b91b641b1974b29b6c042215 Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 8066bf182ef5..808021568563 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -964,16 +964,6 @@ static int vop_plane_atomic_check(struct drm_plane *plane, 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. -- 2.34.1