Skip to content

Commit df063c0

Browse files
Andy Yanmmind
authored andcommitted
drm/rockchip: vop2: Check linear format for Cluster windows on rk3566/8
The Cluster windows on rk3566/8 only support afbc mode. Fixes: 604be85 ("drm/rockchip: Add VOP2 driver") 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 c766998 commit df063c0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/gpu/drm/rockchip/rockchip_drm_vop2.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,16 @@ static bool rockchip_vop2_mod_supported(struct drm_plane *plane, u32 format,
593593
if (modifier == DRM_FORMAT_MOD_INVALID)
594594
return false;
595595

596+
if (vop2->data->soc_id == 3568 || vop2->data->soc_id == 3566) {
597+
if (vop2_cluster_window(win)) {
598+
if (modifier == DRM_FORMAT_MOD_LINEAR) {
599+
drm_dbg_kms(vop2->drm,
600+
"Cluster window only supports format with afbc\n");
601+
return false;
602+
}
603+
}
604+
}
605+
596606
if (modifier == DRM_FORMAT_MOD_LINEAR)
597607
return true;
598608

0 commit comments

Comments
 (0)