mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
video/rockchip: rga2: correct BGRA stride
Change-Id: I019e2e410936f43b244ddde260cbd51c16a175e4 Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user