drm/rockchip: vop2: add writeback virtual height support

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I6971328ca0c931d884cd093310020f34a48d908c
This commit is contained in:
Sandy Huang 2023-05-06 09:50:35 +08:00 committed by Tao Huang
parent 6c65f4a7e9
commit 6291a1be8f

View File

@ -3167,7 +3167,7 @@ static int vop2_wb_encoder_atomic_check(struct drm_encoder *encoder,
}
if ((fb->width > cstate->mode.hdisplay) ||
((fb->height != cstate->mode.vdisplay) &&
((fb->height < cstate->mode.vdisplay) &&
(fb->height != (cstate->mode.vdisplay >> 1)))) {
DRM_DEBUG_KMS("Invalid framebuffer size %ux%u, Only support x scale down and 1/2 y scale down\n",
fb->width, fb->height);