video: rockchip: rga3: modify over-constraint on fbcd

Change-Id: I9aa492263f036cedddc5e85485bb250770d2aafa
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
This commit is contained in:
Yu Qiaowei
2023-06-16 04:00:54 +00:00
committed by Tao Huang
parent 679557456b
commit 2b39b0acb4

View File

@@ -390,9 +390,9 @@ static void RGA3_set_reg_win0_info(u8 *base, struct rga3_req *msg)
*/
/* do not use win0 src size except fbcd */
*bRGA3_WIN0_SRC_SIZE = (msg->win0.src_act_w +
msg->win0.x_offset) | ((msg->win0.y_offset +
msg->win0.src_act_h) << 16);
/* in FBCD, src_width needs to be aligned at 16 */
*bRGA3_WIN0_SRC_SIZE = ALIGN(msg->win0.src_act_w + msg->win0.x_offset, 16) |
(ALIGN(msg->win0.y_offset + msg->win0.src_act_h, 16) << 16);
*bRGA3_WIN0_ACT_SIZE =
msg->win0.src_act_w | (msg->win0.src_act_h << 16);
*bRGA3_WIN0_DST_SIZE =