drm/rockchip: fixup input source check
authorMark Yao <mark.yao@rock-chips.com>
Tue, 21 Feb 2017 01:50:07 +0000 (09:50 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 22 Feb 2017 06:27:30 +0000 (14:27 +0800)
check destination with max_input is wrong.

Change-Id: If5499b0bc61c84f2b91b641b1974b29b6c042215
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c

index 8066bf182ef539c70353e7ecfb957adea4441409..808021568563dd22d3583479c63f0e59fa975ced 100644 (file)
@@ -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.