video: rockchip: rga3: add support colorfill with tile4x4

Change-Id: I8845f2fdd08dcf4c254e3705ca7d486c3e4a9a51
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
This commit is contained in:
Yu Qiaowei
2023-12-27 19:29:46 +08:00
committed by Tao Huang
parent 9681934706
commit c57af97268

View File

@@ -2213,6 +2213,17 @@ static int rga2_gen_reg_info(struct rga_scheduler_t *scheduler, u8 *base, struct
break;
case COLOR_FILL_MODE:
RGA2_set_reg_color_fill(base, msg);
/* tile4x4 need a fake input */
if (msg->dst.rd_mode == RGA_TILE4x4_MODE) {
msg->src.act_w = msg->dst.act_w;
msg->src.act_h = msg->dst.act_h;
msg->src.vir_w = msg->dst.vir_w;
msg->src.vir_h = msg->dst.vir_h;
msg->src.format = RGA_FORMAT_RGBA_8888;
msg->src.rd_mode = RGA_RASTER_MODE;
RGA2_set_reg_src_info(base, msg);
}
RGA2_set_reg_dst_info(base, msg);
RGA2_set_reg_alpha_info(base, msg);
break;