mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
video: rockchip: rga3: Fix rotating mmu interruption error.
Since the ARGB format was added without processing the address offset during rotation, the address offset of mmu was calculated incorrectly. Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com> Change-Id: I602ebd3bcc9c60fd90103ef50e29e6b9f2a11727
This commit is contained in:
@@ -1150,7 +1150,9 @@ static void RGA2_set_reg_dst_info(u8 *base, struct rga2_req *msg)
|
||||
line_width_real =
|
||||
dst_fmt_y4_en ? ((msg->dst.act_w) >> 1) : msg->dst.act_w;
|
||||
|
||||
if (msg->dst.format < 0x18) {
|
||||
if (msg->dst.format < 0x18 ||
|
||||
(msg->dst.format >= RGA2_FORMAT_ARGB_8888 &&
|
||||
msg->dst.format <= RGA2_FORMAT_ABGR_4444)) {
|
||||
/* 270 degree & Mirror V */
|
||||
y_ld_addr = yrgb_addr + (msg->dst.act_h - 1) * (d_stride);
|
||||
/* 90 degree & Mirror H */
|
||||
|
||||
Reference in New Issue
Block a user