drm/rockchip: vop2: Forbid X Mirror in splice mode

Rotate90/270 and X Mirror are unsupported.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I1656f602a20a38074b2777b349b7d77f1c7316b6
This commit is contained in:
Andy Yan
2021-11-09 09:49:53 +08:00
committed by Tao Huang
parent 03b6bb941d
commit 5f5b655409

View File

@@ -3246,8 +3246,10 @@ static int vop2_plane_splice_check(struct drm_plane *plane, struct drm_plane_sta
return -EINVAL;
}
if ((pstate->rotation & DRM_MODE_ROTATE_270) || (pstate->rotation & DRM_MODE_ROTATE_90)) {
DRM_ERROR("%s can't rotate 270/90 in splice mode\n", win->name);
if ((pstate->rotation & DRM_MODE_ROTATE_270) ||
(pstate->rotation & DRM_MODE_ROTATE_90) ||
(pstate->rotation & DRM_MODE_REFLECT_X)) {
DRM_ERROR("%s can't rotate 270/90 and xmirror in splice mode\n", win->name);
return -EINVAL;
}