Skip to content

Commit eacc3b7

Browse files
Yu Qiaoweirkhuangtao
authored andcommitted
video/rockchip: rga2: Modify the judgment of first req.
Fixed the error that color fill would cause "req argument is inval". Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com> Change-Id: I94ebfc2061f16916813a0d85630f8a9862728b0e
1 parent 157b653 commit eacc3b7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/video/rockchip/rga2/rga2_drv.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,7 @@ static long rga_ioctl(struct file *file, uint32_t cmd, unsigned long arg)
16951695
}
16961696
RGA_MSG_2_RGA2_MSG(&req_rga, &req);
16971697

1698-
if (first_RGA2_proc == 0 && req.bitblt_mode == bitblt_mode && rga2_service.dev_mode == 1) {
1698+
if (first_RGA2_proc == 0 && req.render_mode == bitblt_mode && rga2_service.dev_mode == 1) {
16991699
memcpy(&req_first, &req, sizeof(struct rga2_req));
17001700
if ((req_first.src.act_w != req_first.dst.act_w)
17011701
|| (req_first.src.act_h != req_first.dst.act_h)) {
@@ -1721,7 +1721,7 @@ static long rga_ioctl(struct file *file, uint32_t cmd, unsigned long arg)
17211721
}
17221722

17231723
RGA_MSG_2_RGA2_MSG(&req_rga, &req);
1724-
if (first_RGA2_proc == 0 && req.bitblt_mode == bitblt_mode && rga2_service.dev_mode == 1) {
1724+
if (first_RGA2_proc == 0 && req.render_mode == bitblt_mode && rga2_service.dev_mode == 1) {
17251725
memcpy(&req_first, &req, sizeof(struct rga2_req));
17261726
if ((req_first.src.act_w != req_first.dst.act_w)
17271727
|| (req_first.src.act_h != req_first.dst.act_h)
@@ -1869,7 +1869,7 @@ static long compat_rga_ioctl(struct file *file, uint32_t cmd, unsigned long arg)
18691869

18701870
RGA_MSG_2_RGA2_MSG_32(&req_rga, &req);
18711871

1872-
if (first_RGA2_proc == 0 && req.bitblt_mode == bitblt_mode && rga2_service.dev_mode == 1) {
1872+
if (first_RGA2_proc == 0 && req.render_mode == bitblt_mode && rga2_service.dev_mode == 1) {
18731873
memcpy(&req_first, &req, sizeof(struct rga2_req));
18741874
if ((req_first.src.act_w != req_first.dst.act_w)
18751875
|| (req_first.src.act_h != req_first.dst.act_h)) {
@@ -1895,7 +1895,7 @@ static long compat_rga_ioctl(struct file *file, uint32_t cmd, unsigned long arg)
18951895
}
18961896
RGA_MSG_2_RGA2_MSG_32(&req_rga, &req);
18971897

1898-
if (first_RGA2_proc == 0 && req.bitblt_mode == bitblt_mode && rga2_service.dev_mode == 1) {
1898+
if (first_RGA2_proc == 0 && req.render_mode == bitblt_mode && rga2_service.dev_mode == 1) {
18991899
memcpy(&req_first, &req, sizeof(struct rga2_req));
19001900
if ((req_first.src.act_w != req_first.dst.act_w)
19011901
|| (req_first.src.act_h != req_first.dst.act_h)) {

0 commit comments

Comments
 (0)