Skip to content

Commit 2ac4fce

Browse files
yueshunumbqq
authored andcommitted
drm/rockchip: vop: adjust the layers in RK3399's VOBL
AFAWK, there are four layers in RK3399's VOPB, and two layers for RK3399's VOPL. And RK3399's VOBL has the win0 and win2 layers, the formats they support as below. win0: XR24 AR24 XB24 AB24 RG24 BG24 RG16 BG16 NV12 NV16 NV24 NA12 NA16 NA24 win2: XR24 AR24 XB24 AB24 RG24 BG24 RG16 BG16 So only win0 layer supports NV12 format (for video decode format), adjust the overlay for video and primary layer for display. It didn't care this case if some platforms had handled the display in application (e.g android), then on the Linux platform, it's hard to handle the all kinds of cases in Display application, perhaps the linux needn't this patch fixes it in the future. Depend-CL:76144 Fixes: d82f1d3 ("arm64: dts: rockchip: reasonable alllcation of VOP on rk3399 linux") Change-Id: Id93b315b6e3ae670bf5ea4dc0a64e140c6e37e80 Signed-off-by: Caesar Wang <[email protected]> Signed-off-by: Nickey Yang <[email protected]>
1 parent 70d5b7e commit 2ac4fce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/rockchip/rockchip_vop_reg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,11 +627,11 @@ static const struct vop_data rk3399_vop_big = {
627627

628628
static const struct vop_win_data rk3399_vop_lit_win_data[] = {
629629
{ .base = 0x00, .phy = &rk3288_win01_data, .csc = &rk3399_win0_csc,
630-
.type = DRM_PLANE_TYPE_PRIMARY,
630+
.type = DRM_PLANE_TYPE_OVERLAY,
631631
.feature = WIN_FEATURE_AFBDC },
632632
{ .phy = NULL },
633633
{ .base = 0x00, .phy = &rk3368_win23_data, .csc = &rk3399_win2_csc,
634-
.type = DRM_PLANE_TYPE_CURSOR,
634+
.type = DRM_PLANE_TYPE_PRIMARY,
635635
.feature = WIN_FEATURE_AFBDC,
636636
.area = rk3368_area_data,
637637
.area_size = ARRAY_SIZE(rk3368_area_data), },

0 commit comments

Comments
 (0)