Commit 9b751e52 authored by Hsiao Chien Sung's avatar Hsiao Chien Sung Committed by Chun-Kuang Hu

drm/mediatek: Support DRM plane alpha in Mixer

Set the plane alpha according to DRM plane property.
Reviewed-by: default avatarCK Hu <ck.hu@mediatek.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Fixes: 119f5173 ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.")
Signed-off-by: default avatarHsiao Chien Sung <shawn.sung@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20240620-igt-v3-14-a9d62d2e2c7e@mediatek.com/Signed-off-by: default avatarChun-Kuang Hu <chunkuang.hu@kernel.org>
parent bc46eb5d
...@@ -170,8 +170,10 @@ void mtk_ethdr_layer_config(struct device *dev, unsigned int idx, ...@@ -170,8 +170,10 @@ void mtk_ethdr_layer_config(struct device *dev, unsigned int idx,
return; return;
} }
if (state->base.fb && state->base.fb->format->has_alpha) if (state->base.fb) {
alpha_con = MIXER_ALPHA_AEN | MIXER_ALPHA; alpha_con |= MIXER_ALPHA_AEN;
alpha_con |= state->base.alpha & MIXER_ALPHA;
}
if (state->base.fb && !state->base.fb->format->has_alpha) { if (state->base.fb && !state->base.fb->format->has_alpha) {
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment