Skip to content

Commit 7e8a56c

Browse files
Andy Yanmmind
authored andcommitted
drm/rockchip: vop2: Add check for 32 bpp format for rk3588
RK3588 only support DRM_FORMAT_XRGB2101010/XBGR2101010 in afbc mode. Fixes: 5a028e8 ("drm/rockchip: vop2: Add support for rk3588") Signed-off-by: Andy Yan <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent df063c0 commit 7e8a56c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/gpu/drm/rockchip/rockchip_drm_vop2.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,15 @@ static bool rockchip_vop2_mod_supported(struct drm_plane *plane, u32 format,
603603
}
604604
}
605605

606+
if (format == DRM_FORMAT_XRGB2101010 || format == DRM_FORMAT_XBGR2101010) {
607+
if (vop2->data->soc_id == 3588) {
608+
if (!rockchip_afbc(plane, modifier)) {
609+
drm_dbg_kms(vop2->drm, "Only support 32 bpp format with afbc\n");
610+
return false;
611+
}
612+
}
613+
}
614+
606615
if (modifier == DRM_FORMAT_MOD_LINEAR)
607616
return true;
608617

0 commit comments

Comments
 (0)