From: zsq Date: Thu, 8 May 2014 08:03:59 +0000 (+0800) Subject: fix rga scale for dst_w large than 2048 X-Git-Tag: firefly_0821_release~5329 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=122618cc1e73ee548f3ec02f10417520e5f0270a;p=firefly-linux-kernel-4.4.55.git fix rga scale for dst_w large than 2048 --- diff --git a/drivers/video/rockchip/rga2/rga2_reg_info.c b/drivers/video/rockchip/rga2/rga2_reg_info.c index b80ac018ee2c..535944f24f23 100644 --- a/drivers/video/rockchip/rga2/rga2_reg_info.c +++ b/drivers/video/rockchip/rga2/rga2_reg_info.c @@ -1023,6 +1023,9 @@ void RGA_MSG_2_RGA2_MSG(struct rga_req *req_rga, struct rga2_req *req) req->rotate_mode = 0; } + if((req->dst.act_w > 2048) && (req->src.act_h < req->dst.act_h)) + req->scale_bicu_mode |= (1<<4); + req->LUT_addr = req_rga->LUT_addr; req->rop_mask_addr = req_rga->rop_mask_addr;