video: rockchip: rga3: Fixup wrong uv_stride on rga888 fbc

Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I60626f464e5a55c5afce5ae9fc546b374f4119ad
This commit is contained in:
Li Huang
2021-11-26 15:13:22 +08:00
committed by Tao Huang
parent e66a221f58
commit 262304034d

View File

@@ -996,7 +996,7 @@ static void RGA3_set_reg_wr_info(u8 *base, struct rga3_req *msg)
uv_stride = ((msg->wr.vir_w + 15) & ~15);
/* RGB888 */
else if (wr_format == 0x5)
uv_stride = ((msg->wr.vir_w + 15) & ~15) >> 2 * 3;
uv_stride = (((msg->wr.vir_w + 15) & ~15) >> 2) * 3;
/* RGB565, yuv422 8bit, yuv420 10bit */
else if (wr_format == 0x4 || wr_format == 0x1 || wr_format == 0x2)
uv_stride = ((msg->wr.vir_w + 15) & ~15) >> 1;