Skip to content

Commit 0ef968d

Browse files
knaerzchemmind
authored andcommitted
drm/rockchip: vop: Allow 4096px width scaling
There is no reason to limit VOP scaling to 3840px width, the limit of RK3288, when there are newer VOP versions that support 4096px width. Change to enforce a maximum of 4096px width plane scaling, the maximum supported output width of the VOP versions supported by this driver. Fixes: 4c156c2 ("drm/rockchip: vop: support plane scale") Signed-off-by: Alex Bee <[email protected]> Signed-off-by: Jonas Karlman <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent a98a1a3 commit 0ef968d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/rockchip/rockchip_drm_vop.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ static void scl_vop_cal_scl_fac(struct vop *vop, const struct vop_win_data *win,
396396
if (info->is_yuv)
397397
is_yuv = true;
398398

399-
if (dst_w > 3840) {
400-
DRM_DEV_ERROR(vop->dev, "Maximum dst width (3840) exceeded\n");
399+
if (dst_w > 4096) {
400+
DRM_DEV_ERROR(vop->dev, "Maximum dst width (4096) exceeded\n");
401401
return;
402402
}
403403

0 commit comments

Comments
 (0)