diff options
author | Mark yao <mark.yao@rock-chips.com> | 2017-07-31 17:49:55 +0800 |
---|---|---|
committer | Mark Yao <mark.yao@rock-chips.com> | 2017-08-04 15:39:32 +0800 |
commit | 80c471ea040ad9006ebff6d64221a04e8fa1b7f6 (patch) | |
tree | 33a0a92a5ab400b18cf250f7409c8fd7b944e15a /drivers/gpu/drm/rockchip | |
parent | 79a0b149d4e3d45fc46673f4b29a157776c174e2 (diff) | |
download | talos-obmc-linux-80c471ea040ad9006ebff6d64221a04e8fa1b7f6.tar.gz talos-obmc-linux-80c471ea040ad9006ebff6d64221a04e8fa1b7f6.zip |
drm/rockchip: vop: report error when check resource error
The user would be confused while facing a error commit without
any error report.
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Reviewed-by: Sandy huang <sandy.huang@rock-chips.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1501494596-7090-1-git-send-email-mark.yao@rock-chips.com
Diffstat (limited to 'drivers/gpu/drm/rockchip')
-rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index e205c5cf9019..2900f1410d95 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -679,8 +679,10 @@ static int vop_plane_atomic_check(struct drm_plane *plane, * Src.x1 can be odd when do clip, but yuv plane start point * need align with 2 pixel. */ - if (is_yuv_support(fb->format->format) && ((state->src.x1 >> 16) % 2)) + if (is_yuv_support(fb->format->format) && ((state->src.x1 >> 16) % 2)) { + DRM_ERROR("Invalid Source: Yuv format not support odd xpos\n"); return -EINVAL; + } return 0; } |