Skip to content

Commit 11de358

Browse files
johnkeepinghverkuil
authored andcommitted
media: rockchip: rga: fix rga offset lookup
The arguments to rga_lookup_draw_pos() are passed in the wrong order, rotate mode should be before mirror mode. Fixes: 558c248 ("media: rockchip: rga: split src and dst buffer setup") Cc: [email protected] Signed-off-by: John Keeping <[email protected]> Reviewed-by: Michael Tretter <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent 1e7bd96 commit 11de358

File tree

1 file changed

+1
-1
lines changed
  • drivers/media/platform/rockchip/rga

1 file changed

+1
-1
lines changed

drivers/media/platform/rockchip/rga/rga-hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ static void rga_cmd_set_dst_info(struct rga_ctx *ctx,
376376
* Configure the dest framebuffer base address with pixel offset.
377377
*/
378378
offsets = rga_get_addr_offset(&ctx->out, offset, dst_x, dst_y, dst_w, dst_h);
379-
dst_offset = rga_lookup_draw_pos(&offsets, mir_mode, rot_mode);
379+
dst_offset = rga_lookup_draw_pos(&offsets, rot_mode, mir_mode);
380380

381381
dest[(RGA_DST_Y_RGB_BASE_ADDR - RGA_MODE_BASE_REG) >> 2] =
382382
dst_offset->y_off;

0 commit comments

Comments
 (0)