drm/mediatek: Add ovl_adaptor get format function
authorNancy.Lin <nancy.lin@mediatek.com>
Thu, 30 Mar 2023 03:26:14 +0000 (11:26 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 3 Apr 2023 03:06:01 +0000 (03:06 +0000)
commitd6dc3cdcc8b55ff58aea8b729f870024ac5f7fbf
tree574c8c87aad91bede72a9717bd28017f77f2c83e
parentdf4752441d6bad238ca5df628dd11bc92225777b
drm/mediatek: Add ovl_adaptor get format function

1. Add ovl_adaptor get_format and get_num_formats component function.
The two functions are needed for getting the supported format in
mtk_plane_init().
2. Get supported format from the ovl_adaptor's rdma engine - mdp_rdma.

Signed-off-by: Nancy.Lin <nancy.lin@mediatek.com>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20230330032614.18837-3-nancy.lin@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_disp_drv.h
drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c
drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c