Re: [PATCH v4 3/5] drm/mediatek: Support "Pre-multiplied" blending in OVL

From: AngeloGioacchino Del Regno
Date: Wed Jul 17 2024 - 09:49:56 EST


Il 17/07/24 07:24, Hsiao Chien Sung via B4 Relay ha scritto:
From: Hsiao Chien Sung <shawn.sung@xxxxxxxxxxxx>

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@xxxxxxxxxxxx>
Signed-off-by: Hsiao Chien Sung <shawn.sung@xxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>