video: rockchip: rga3: add bi-linear(scale-down) limits

If scaling is done vertically using bilinear interpolation, the input
resolution is forced to switch to average interpolation when it is
greater than 4096.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I66d2ecb76386d3f6378a241f7157af89f1e1542d
This commit is contained in:
Yu Qiaowei
2024-02-28 19:52:34 +08:00
committed by Tao Huang
parent 82f25254b8
commit 9538efdbea

View File

@@ -358,7 +358,12 @@ static void RGA2_set_reg_src_info(u8 *base, struct rga2_req *msg)
vsd_scale_mode = 0;
break;
case RGA_INTERP_LINEAR:
vsd_scale_mode = 1;
if (sh > 4096)
/* force select average */
vsd_scale_mode = 0;
else
vsd_scale_mode = 1;
break;
}
}