mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
video/rockchip/rga: Fix rgaColorFill issue when both input fd and vir_addr.
Change-Id: Idee53715ded6941033f7cab8e6de70a0a6d27364 Signed-off-by: Zhixiong Lin <zhixiong.lin@rock-chips.com>
This commit is contained in:
@@ -1040,6 +1040,13 @@ static int rga_convert_dma_buf(struct rga_req *req)
|
||||
pr_err("RGA ERROR ion buf handle\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (req->src.uv_addr) {
|
||||
if (RGA_TEST_MSG)
|
||||
pr_err("WARNING : don't input viraddrs when already input fd !\n");
|
||||
req->src.uv_addr = 0;
|
||||
}
|
||||
|
||||
#if RGA_DEBUGFS
|
||||
if (RGA_CHECK_MODE) {
|
||||
vaddr = ion_map_kernel(drvdata->ion_client, hdl);
|
||||
@@ -1076,6 +1083,13 @@ static int rga_convert_dma_buf(struct rga_req *req)
|
||||
printk("RGA2 ERROR ion buf handle\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (req->dst.uv_addr) {
|
||||
if (RGA_TEST_MSG)
|
||||
pr_err("WARNING : don't input viraddrs when already input fd !\n");
|
||||
req->dst.uv_addr = 0;
|
||||
}
|
||||
|
||||
#if RGA_DEBUGFS
|
||||
if (RGA_CHECK_MODE) {
|
||||
vaddr = ion_map_kernel(drvdata->ion_client, hdl);
|
||||
|
||||
Reference in New Issue
Block a user