From: Pekka Paalanen <ppaalanen@gmail.com>
To: Simon Ser <contact@emersion.fr>
Cc: dri-devel@lists.freedesktop.org, Daniel Vetter <daniel@ffwll.ch>
Subject: Re: [PATCH] drm: document pre-multiplied assumptions
Date: Wed, 29 Sep 2021 16:07:01 +0300 [thread overview]
Message-ID: <20210929160701.2bf6d8c9@eldfell> (raw)
In-Reply-To: <20210929095357.49984-1-contact@emersion.fr>
[-- Attachment #1: Type: text/plain, Size: 1378 bytes --]
On Wed, 29 Sep 2021 09:54:14 +0000
Simon Ser <contact@emersion.fr> wrote:
> When a plane is missing the "alpha blend mode" property, KMS drivers
> will use the pre-multiplied mode.
>
> Signed-off-by: Simon Ser <contact@emersion.fr>
> Cc: Daniel Vetter <daniel@ffwll.ch>
> Cc: Pekka Paalanen <ppaalanen@gmail.com>
> ---
> drivers/gpu/drm/drm_blend.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/drm_blend.c b/drivers/gpu/drm/drm_blend.c
> index ec37cbfabb50..eebb32ba84d7 100644
> --- a/drivers/gpu/drm/drm_blend.c
> +++ b/drivers/gpu/drm/drm_blend.c
> @@ -185,6 +185,9 @@
> * plane does not expose the "alpha" property, then this is
> * assumed to be 1.0
> *
> + * When a plane is missing this property, the plane uses the
> + * "Pre-multiplied" equation.
> + *
> * Note that all the property extensions described here apply either to the
> * plane or the CRTC (e.g. for the background color, which currently is not
> * exposed and assumed to be black).
Hi Simon,
thank you! :-D
I have no idea if that's correct though, but also nothing against it,
and it does help with what I ranted about in
https://lists.freedesktop.org/archives/wayland-devel/2021-September/041993.html
so is it appropriate to offer my
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.com>
?
Thanks,
pq
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2021-09-29 13:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-29 9:54 [PATCH] drm: document pre-multiplied assumptions Simon Ser
2021-09-29 12:55 ` Ville Syrjälä
2021-09-29 13:07 ` Pekka Paalanen [this message]
2021-09-30 14:43 ` Daniel Vetter
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=20210929160701.2bf6d8c9@eldfell \
--to=ppaalanen@gmail.com \
--cc=contact@emersion.fr \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
/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