]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/mediatek: Support "Pre-multiplied" blending in OVL
authorHsiao Chien Sung <shawn.sung@mediatek.com>
Wed, 17 Jul 2024 05:24:43 +0000 (13:24 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Wed, 31 Jul 2024 13:25:53 +0000 (13:25 +0000)
commita3f7f7ef4bfefbbb03cc5e6fa73cd07bdb329bed
tree59e9d3f34e06a83051c1329519f8e48163b23a43
parenteb17c5909481d5950282ca8460e7b7420a4c36a4
drm/mediatek: Support "Pre-multiplied" blending in OVL

Support "Pre-multiplied" alpha blending mode on in OVL.
Before this patch, only the "coverage" mode is supported.

As whether OVL_CON_CLRFMT_MAN bit is enabled, (3 << 12)
means different formats in the datasheet. To prevent
misunderstandings going forward, instead of reusing
OVL_CON_CLRFMT_RGBA8888, we intetionally defined
OVL_CON_CLRFMT_PARGB8888 with bit operation again.

Reviewed-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20240717-alpha-blending-v4-3-4b1c806c0749@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_disp_ovl.c