video/rockchip: rga2: Add support for BGRX8888

The userspace librga(im2d) is using 0x16 for BGRX8888.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I6cac09898039aefa87f5633d60bf590e3f130e56
This commit is contained in:
Yu Qiaowei
2020-11-27 21:44:37 +08:00
parent 78531169b1
commit 17b7a48bf0

View File

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