Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/mediatek: Add mediatek-drm plane color encoding info

Add plane color encoding information for color space conversion.
It's a preparation for adding support for mt8195 ovl_adaptor mdp_rdma
csc control.

Signed-off-by: Nancy.Lin <nancy.lin@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: Bo-Chen Chen <rex-bc.chen@mediatek.com>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20220620091930.27797-10-nancy.lin@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>

authored by

Nancy.Lin and committed by
Chun-Kuang Hu
5621416b aaf94f7c

+2
+1
drivers/gpu/drm/mediatek/mtk_drm_plane.c
··· 138 138 mtk_plane_state->pending.width = drm_rect_width(&new_state->dst); 139 139 mtk_plane_state->pending.height = drm_rect_height(&new_state->dst); 140 140 mtk_plane_state->pending.rotation = new_state->rotation; 141 + mtk_plane_state->pending.color_encoding = new_state->color_encoding; 141 142 } 142 143 143 144 static void mtk_plane_atomic_async_update(struct drm_plane *plane,
+1
drivers/gpu/drm/mediatek/mtk_drm_plane.h
··· 24 24 bool dirty; 25 25 bool async_dirty; 26 26 bool async_config; 27 + enum drm_color_encoding color_encoding; 27 28 }; 28 29 29 30 struct mtk_plane_state {