]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/mediatek: Add blend_modes to mtk_plane_init() for different SoCs
authorJason-JH.Lin <jason-jh.lin@mediatek.com>
Wed, 9 Oct 2024 03:46:46 +0000 (11:46 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Tue, 22 Oct 2024 12:47:47 +0000 (12:47 +0000)
commite6411bf2aea87aa3fdf74c7bce37db3d975ab026
treeee0fa7cb0a33177171d92b592ae038c8f3f9b9d7
parent333ab43616ff46694b46b4137acd0e19dc291a7f
drm/mediatek: Add blend_modes to mtk_plane_init() for different SoCs

Since some SoCs support premultiplied pixel formats but some do not,
the blend_modes parameter is added to mtk_plane_init(), which is
obtained from the mtk_ddp_comp_get_blend_modes function implemented
in different blending supported components.

The blending supported components can use driver data to set the
blend mode capabilities for different SoCs.

Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20241009034646.13143-6-jason-jh.lin@mediatek.com/
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_disp_ovl_adaptor.c
drivers/gpu/drm/mediatek/mtk_ethdr.c
drivers/gpu/drm/mediatek/mtk_ethdr.h
drivers/gpu/drm/mediatek/mtk_plane.c
drivers/gpu/drm/mediatek/mtk_plane.h