Skip to content

Commit e7aae9f

Browse files
Andy Yanmmind
authored andcommitted
drm/rockchip: vop2: Add uv swap for cluster window
The Cluster windows of upcoming VOP on rk3576 also support linear YUV support, we need to set uv swap bit for it. As the VOP2_WIN_UV_SWA register defined on rk3568/rk3588 is 0xffffffff, so this register will not be touched on these two platforms. Signed-off-by: Andy Yan <[email protected]> Tested-by: Michael Riesch <[email protected]> # on RK3568 Tested-by: Detlev Casanova <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent b90fa71 commit e7aae9f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/gpu/drm/rockchip/rockchip_drm_vop2.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,10 +1377,8 @@ static void vop2_plane_atomic_update(struct drm_plane *plane,
13771377

13781378
rb_swap = vop2_win_rb_swap(fb->format->format);
13791379
vop2_win_write(win, VOP2_WIN_RB_SWAP, rb_swap);
1380-
if (!vop2_cluster_window(win)) {
1381-
uv_swap = vop2_win_uv_swap(fb->format->format);
1382-
vop2_win_write(win, VOP2_WIN_UV_SWAP, uv_swap);
1383-
}
1380+
uv_swap = vop2_win_uv_swap(fb->format->format);
1381+
vop2_win_write(win, VOP2_WIN_UV_SWAP, uv_swap);
13841382

13851383
if (fb->format->is_yuv) {
13861384
vop2_win_write(win, VOP2_WIN_UV_VIR, DIV_ROUND_UP(fb->pitches[1], 4));

0 commit comments

Comments
 (0)