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