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