mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user