video/rockchip: rga2: correct BGRA stride

Change-Id: I019e2e410936f43b244ddde260cbd51c16a175e4
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
Mark Yao 2017-08-09 15:00:10 +08:00
parent a54bcc81e0
commit 93f90ec2cb

View File

@ -180,7 +180,8 @@ static int rga2_buf_size_cal(unsigned long yrgb_addr, unsigned long uv_addr, uns
pageCount = (size_yrgb + PAGE_SIZE - 1) >> PAGE_SHIFT;
break;
case RGA2_FORMAT_BGRA_8888 :
size_yrgb = w*h*4;
stride = (w * 4 + 3) & (~3);
size_yrgb = stride * h;
start = yrgb_addr >> PAGE_SHIFT;
pageCount = (size_yrgb + PAGE_SIZE - 1) >> PAGE_SHIFT;
break;