fix rga scale for dst_w large than 2048
authorzsq <zsq@rock-chips.com>
Thu, 8 May 2014 08:03:59 +0000 (16:03 +0800)
committerzsq <zsq@rock-chips.com>
Thu, 8 May 2014 08:03:59 +0000 (16:03 +0800)
drivers/video/rockchip/rga2/rga2_reg_info.c

index b80ac018ee2c05a07f2f6c02e35c98f5c823e1de..535944f24f23acabcda6a45a0ed60a2c35a68fed 100644 (file)
@@ -1023,6 +1023,9 @@ void RGA_MSG_2_RGA2_MSG(struct rga_req *req_rga, struct rga2_req *req)
         req->rotate_mode = 0;\r
     }\r
 \r
+    if((req->dst.act_w > 2048) && (req->src.act_h < req->dst.act_h))\r
+        req->scale_bicu_mode |= (1<<4);\r
+\r
     req->LUT_addr = req_rga->LUT_addr;\r
     req->rop_mask_addr = req_rga->rop_mask_addr;\r
 \r