video/rockchip: rga: fixup render_mode parameter incorrect

Change-Id: I6a1c64231efb0b17be1fa48d32638bfb0806b3b4
Signed-off-by: Putin Lee <putin.li@rock-chips.com>
This commit is contained in:
Putin Lee
2017-11-20 14:07:30 +08:00
committed by Tao Huang
parent 46cf9e058b
commit 9a9d5ed30b
2 changed files with 2 additions and 1 deletions

View File

@@ -19,6 +19,7 @@
#define RGA_OUT_OF_RESOURCES -10
#define RGA_MALLOC_ERROR -11
#define RGA_BUF_GEM_TYPE_MASK 0xC0
#define rgaIS_ERROR(status) (status < 0)
#define rgaNO_ERROR(status) (status >= 0)

View File

@@ -1029,7 +1029,7 @@ static int rga_blit(rga_session *session, struct rga_req *req)
printk("RGA : DMA buf copy error\n");
return -EFAULT;
}
req->render_mode &= (~RGA_BUF_GEM_TYPE_MASK);
do {
if((req->render_mode == bitblt_mode) && (((saw>>1) >= daw) || ((sah>>1) >= dah))) {
/* generate 2 cmd for pre scale */