mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02: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:
parent
a54bcc81e0
commit
93f90ec2cb
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user