From: "CK Hu (胡俊光)" <ck.hu@mediatek.com>
To: "p.zabel@pengutronix.de" <p.zabel@pengutronix.de>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
"chunkuang.hu@kernel.org" <chunkuang.hu@kernel.org>,
"ryanbrue.dev@gmail.com" <ryanbrue.dev@gmail.com>,
"airlied@gmail.com" <airlied@gmail.com>,
"matthias.bgg@gmail.com" <matthias.bgg@gmail.com>,
"simona@ffwll.ch" <simona@ffwll.ch>
Cc: "dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"linux-mediatek@lists.infradead.org"
<linux-mediatek@lists.infradead.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2] drm/mediatek: ovl: Report coverage blending on older SoCs
Date: Fri, 27 Nov 2026 07:29:24 +0000 [thread overview]
Message-ID: <be8f55da565839dd1721c02892e476f390ca3579.camel@mediatek.com> (raw)
In-Reply-To: <20261123-rbrue-suez-mtk-ovl-coverage-v2-1-4149e2ed5fee@gmail.com>
On Mon, 2026-11-23 at 18:35 -0600, Ryan Brue wrote:
> External email : Please do not click links or open attachments until you have verified the sender or the content.
>
>
> Since commit 860e748bddcc ("drm: ensure blend mode supported if pixel
> format with alpha exposed"), every OVL plane on MT2701, MT8167, MT8173
> and MT8183 warns at boot:
>
> [drm] [PLANE:37:plane-0] pixel format with alpha exposed but blend
> mode not setup. Please fix.
>
> These OVLs expose ARGB formats but don't have blend_modes in their driver
> data, so no "pixel blend mode" property is created. They can't blend
> premultiplied pixels: mtk_ovl_fmt_convert() always selects the
> non-premultiplied color formats for them, which is the DRM "Coverage"
> equation. Since commit 9813e158d13d ("drm/drm_blend: allow blend mode
> property without PREMULTI") a coverage-only property is allowed, so
> advertise it and drop the comment saying it couldn't be created.
>
> The plane state then defaults to Coverage (1) instead of Pre-multiplied
> (0), and mtk_ovl_layer_config() enables alpha blending for any non-zero
> blend mode. On these SoCs that would set OVL_CON_AEN for XRGB formats
> too, which they can't ignore the pixel alpha of, the breakage fixed by
> commit 995d4d558eea ("drm/mediatek: ovl: Fix XRGB format breakage for
> blend_modes unsupported SoCs"). Only look at the blend mode on SoCs that
> support premultiplied blending, as mtk_ovl_fmt_convert() does, so these
> SoCs keep enabling alpha blending for formats with alpha only.
>
> Tested on MT8173 (Amazon Fire HD 10 2017). The warning is gone, every
> plane reports a "pixel blend mode" of Coverage, and the OVL0 layer
> registers are unchanged.
Reviewed-by: CK Hu <ck.hu@mediatek.com>
>
> Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
> ---
prev parent reply other threads:[~2026-11-27 7:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 0:35 Ryan Brue
2026-11-27 7:29 ` CK Hu (胡俊光) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=be8f55da565839dd1721c02892e476f390ca3579.camel@mediatek.com \
--to=ck.hu@mediatek.com \
--cc=airlied@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chunkuang.hu@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=ryanbrue.dev@gmail.com \
--cc=simona@ffwll.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®