mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
drm/mediatek: Support "None" blending in Mixer
Support "None" alpha blending mode on MediaTek's chips. Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com> Reviewed-by: CK Hu <ck.hu@mediatek.com> Link: https://patchwork.kernel.org/project/dri-devel/patch/20240717-alpha-blending-v4-2-4b1c806c0749@mediatek.com/ Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
This commit is contained in:
parent
1f66fe62cc
commit
eb17c59094
@ -3,6 +3,7 @@
|
||||
* Copyright (c) 2021 MediaTek Inc.
|
||||
*/
|
||||
|
||||
#include <drm/drm_blend.h>
|
||||
#include <drm/drm_fourcc.h>
|
||||
#include <drm/drm_framebuffer.h>
|
||||
#include <linux/clk.h>
|
||||
@ -175,7 +176,8 @@ void mtk_ethdr_layer_config(struct device *dev, unsigned int idx,
|
||||
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) ||
|
||||
state->base.pixel_blend_mode == DRM_MODE_BLEND_PIXEL_NONE) {
|
||||
/*
|
||||
* Mixer doesn't support CONST_BLD mode,
|
||||
* use a trick to make the output equivalent
|
||||
|
Loading…
Reference in New Issue
Block a user