From: Thomas Zimmermann <tzimmermann@suse.de>
To: Icenowy Zheng <zhengxingda@iscas.ac.cn>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>
Cc: David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
Icenowy Zheng <uwu@icenowy.me>
Subject: Re: [PATCH 2/2] drm/verisilicon: set blend mode for the cursor plane
Date: Thu, 10 Sep 2026 10:50:45 +0200 [thread overview]
Message-ID: <ab4d7464-34e2-41d0-8697-f3abca13e7bb@suse.de> (raw)
In-Reply-To: <20260901171703.1161592-2-zhengxingda@iscas.ac.cn>
Am 01.09.26 um 19:17 schrieb Icenowy Zheng:
> Blend mode properties are now required to expose pixel formats w/ alpha.
>
> Experiments show that the fixed blending mode for the cursor seems to be
> COVERAGE:
>
> - With a cursor plane filled with R=G=0, B=0xff, A=0x40, the cursor is
> visible on a pure-white background, which means the background is
> multiplied.
> - With a cursor plane filled with R=G=B=0xff, A=0x40, the cursor isn't
> pure white and non-white patterns can be see through, which means the
> cursor is multiplied.
>
> Add a fixed COVERAGE blend mode property for the cursor plane.
>
> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> ---
> drivers/gpu/drm/verisilicon/vs_cursor_plane.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> index fa4f601dd0c87..36e3664373fa1 100644
> --- a/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> +++ b/drivers/gpu/drm/verisilicon/vs_cursor_plane.c
> @@ -11,6 +11,7 @@
>
> #include <drm/drm_atomic.h>
> #include <drm/drm_atomic_helper.h>
> +#include <drm/drm_blend.h>
> #include <drm/drm_crtc.h>
> #include <drm/drm_fourcc.h>
> #include <drm/drm_framebuffer.h>
> @@ -268,5 +269,7 @@ struct drm_plane *vs_cursor_plane_init(struct drm_device *drm_dev,
>
> drm_plane_helper_add(plane, &vs_cursor_plane_helper_funcs);
>
> + drm_plane_create_blend_mode_property(plane,
> + BIT(DRM_MODE_BLEND_COVERAGE));
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Please see the other patch for my comments on coding style.
> return plane;
> }
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Jochen Jaser, Andrew McDonald, (HRB 36809, AG Nürnberg)
next prev parent reply other threads:[~2026-09-10 8:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-01 17:17 [PATCH 1/2] drm/verisilicon: set blend mode for the primary plane Icenowy Zheng
2026-09-01 17:17 ` [PATCH 2/2] drm/verisilicon: set blend mode for the cursor plane Icenowy Zheng
2026-09-10 8:50 ` Thomas Zimmermann [this message]
2026-09-10 7:09 ` [PATCH 1/2] drm/verisilicon: set blend mode for the primary plane Icenowy Zheng
2026-09-10 7:58 ` Thomas Zimmermann
2026-09-10 8:00 ` Icenowy Zheng
2026-09-10 8:31 ` Thomas Zimmermann
2026-09-10 8:42 ` Icenowy Zheng
2026-09-10 8:45 ` Icenowy Zheng
2026-09-10 8:56 ` Thomas Zimmermann
2026-09-10 9:02 ` Icenowy Zheng
2026-09-10 9:11 ` Thomas Zimmermann
2026-09-10 8:49 ` Thomas Zimmermann
2026-09-10 9:08 ` Icenowy Zheng
2026-09-10 10:39 ` Thomas Zimmermann
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=ab4d7464-34e2-41d0-8697-f3abca13e7bb@suse.de \
--to=tzimmermann@suse.de \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=uwu@icenowy.me \
--cc=zhengxingda@iscas.ac.cn \
/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®