]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/mediatek: only announce AFBC if really supported
authorIcenowy Zheng <uwu@icenowy.me>
Sat, 31 May 2025 12:11:40 +0000 (20:11 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 17 Jul 2025 23:19:05 +0000 (23:19 +0000)
commit8d121a82fa564e0c8bd86ce4ec56b2a43b9b016e
tree3cd4e1d59d6eca21502130c2e4117b00515e42f9
parentd208261e9f7c66960587b10473081dc1cecbe50b
drm/mediatek: only announce AFBC if really supported

Currently even the SoC's OVL does not declare the support of AFBC, AFBC
is still announced to the userspace within the IN_FORMATS blob, which
breaks modern Wayland compositors like KWin Wayland and others.

Gate passing modifiers to drm_universal_plane_init() behind querying the
driver of the hardware block for AFBC support.

Fixes: c410fa9b07c3 ("drm/mediatek: Add AFBC support to Mediatek DRM driver")
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: CK Hu <ck.hu@medaitek.com>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20250531121140.387661-1-uwu@icenowy.me/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_crtc.c
drivers/gpu/drm/mediatek/mtk_ddp_comp.c
drivers/gpu/drm/mediatek/mtk_ddp_comp.h
drivers/gpu/drm/mediatek/mtk_disp_drv.h
drivers/gpu/drm/mediatek/mtk_disp_ovl.c
drivers/gpu/drm/mediatek/mtk_plane.c
drivers/gpu/drm/mediatek/mtk_plane.h