mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user