Commit 8d121a82 authored by Icenowy Zheng's avatar Icenowy Zheng Committed by Chun-Kuang Hu
Browse files

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: c410fa9b ("drm/mediatek: Add AFBC support to Mediatek DRM driver")
Signed-off-by: default avatarIcenowy Zheng <uwu@icenowy.me>
Reviewed-by: default avatarCK Hu <ck.hu@medaitek.com>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20250531121140.387661-1-uwu@icenowy.me/


Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
parent d208261e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment