[PATCH 01/11] drm/mediatek: Introduce DDP plane_colorops_init() hook

Nícolas F. R. A. Prado posted 11 patches 1 month, 2 weeks ago
[PATCH 01/11] drm/mediatek: Introduce DDP plane_colorops_init() hook
Posted by Nícolas F. R. A. Prado 1 month, 2 weeks ago
Introduce a plane_colorops_init() hook to allow DDP components to define
how to initialize the color pipeline on their planes.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
 drivers/gpu/drm/mediatek/mtk_ddp_comp.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/mediatek/mtk_ddp_comp.h b/drivers/gpu/drm/mediatek/mtk_ddp_comp.h
index 99bf1e1015da..3a7393b7f4c9 100644
--- a/drivers/gpu/drm/mediatek/mtk_ddp_comp.h
+++ b/drivers/gpu/drm/mediatek/mtk_ddp_comp.h
@@ -13,6 +13,7 @@
 #include <linux/soc/mediatek/mtk-mutex.h>
 
 #include <drm/drm_modes.h>
+#include <drm/drm_plane.h>
 
 struct device;
 struct device_node;
@@ -86,6 +87,7 @@ struct mtk_ddp_comp_funcs {
 	const u32 *(*get_formats)(struct device *dev);
 	size_t (*get_num_formats)(struct device *dev);
 	bool (*is_afbc_supported)(struct device *dev);
+	int (*plane_colorops_init)(struct device *dev, struct drm_plane *plane);
 	void (*connect)(struct device *dev, struct device *mmsys_dev, unsigned int next);
 	void (*disconnect)(struct device *dev, struct device *mmsys_dev, unsigned int next);
 	void (*add)(struct device *dev, struct mtk_mutex *mutex);

-- 
2.51.0

Re: [PATCH 01/11] drm/mediatek: Introduce DDP plane_colorops_init() hook
Posted by AngeloGioacchino Del Regno 3 days, 15 hours ago
Il 23/12/25 20:44, Nícolas F. R. A. Prado ha scritto:
> Introduce a plane_colorops_init() hook to allow DDP components to define
> how to initialize the color pipeline on their planes.
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>

Just a nit for the commit description.

In preparation for adding support for per-plane color pipelines, introduce a new
plane_colorops_init() hook to allow [...etc]

Otherwise,
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>


Re: [PATCH 01/11] drm/mediatek: Introduce DDP plane_colorops_init() hook
Posted by Nícolas F. R. A. Prado 3 days, 11 hours ago
On Fri, 2026-02-06 at 11:07 +0100, AngeloGioacchino Del Regno wrote:
> Il 23/12/25 20:44, Nícolas F. R. A. Prado ha scritto:
> > Introduce a plane_colorops_init() hook to allow DDP components to
> > define
> > how to initialize the color pipeline on their planes.
> > 
> > Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> 
> Just a nit for the commit description.
> 
> In preparation for adding support for per-plane color pipelines,
> introduce a new
> plane_colorops_init() hook to allow [...etc]

Will do in v2!

-- 
Thanks,

Nícolas