video/rockchip: rga2: Fixup some situation will cause rga flush timeout on rk3368.

Change-Id: I40efd7ab0500bcf0b628060b4491acc56ce609b0
Signed-off-by: Li Huang <putin.li@rock-chips.com>
This commit is contained in:
Li Huang
2018-07-03 20:17:46 +08:00
committed by Tao Huang
parent 2434000a47
commit 761248eaf1

View File

@@ -1058,14 +1058,11 @@ static long rga_ioctl(struct file *file, uint32_t cmd, unsigned long arg)
printk("dst : aw=%d ah=%d vw=%d vh=%d \n",
req_first.dst.act_w, req_first.dst.act_h, req_first.dst.vir_w, req_first.dst.vir_h);
} else {
if ((req_first.src.act_w != req_first.dst.act_w)
|| (req_first.src.act_h != req_first.dst.act_h)) {
req_first.src.act_w = MIN(320, MIN(req_first.src.act_w, req_first.dst.act_w));
req_first.src.act_h = MIN(240, MIN(req_first.src.act_h, req_first.dst.act_h));
req_first.dst.act_w = req_first.src.act_w;
req_first.dst.act_h = req_first.src.act_h;
ret = rga2_blit_sync(session, &req_first);
}
}
}
ret = rga2_blit_async(session, &req);