mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
drm/rockchip: vop2: Check linear format for Cluster windows on rk3566/8
[ Upstream commit df063c0b8ffbdca486ab2f802e716973985d8f86 ]
The Cluster windows on rk3566/8 only support afbc mode.
Fixes: 604be85547 ("drm/rockchip: Add VOP2 driver")
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20241214081719.3330518-6-andyshrk@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a2373236e4
commit
0764df6b80
@@ -463,6 +463,16 @@ static bool rockchip_vop2_mod_supported(struct drm_plane *plane, u32 format,
|
|||||||
if (modifier == DRM_FORMAT_MOD_INVALID)
|
if (modifier == DRM_FORMAT_MOD_INVALID)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (vop2->data->soc_id == 3568 || vop2->data->soc_id == 3566) {
|
||||||
|
if (vop2_cluster_window(win)) {
|
||||||
|
if (modifier == DRM_FORMAT_MOD_LINEAR) {
|
||||||
|
drm_dbg_kms(vop2->drm,
|
||||||
|
"Cluster window only supports format with afbc\n");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (modifier == DRM_FORMAT_MOD_LINEAR)
|
if (modifier == DRM_FORMAT_MOD_LINEAR)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user