* [PATCH] [PATCH] drm/vkms: Advertise PREMULTI blend mode
@ 2026-07-20 0:17 Michail Tatas
2026-07-22 14:40 ` Joshua Peisach
2026-07-22 15:39 ` Louis Chauvet
0 siblings, 2 replies; 4+ messages in thread
From: Michail Tatas @ 2026-07-20 0:17 UTC (permalink / raw)
To: louis.chauvet, simona, melissa.srw, mripard, tzimmermann, airlied,
hamohammed.sa, maarten.lankhorst
Cc: dri-devel, linux-kernel
Since we only support pre-multiplied alpha blend mode,
advertise that, otherwise validate_blend_mode_for_alpha_formats()
will throw a WARN.
Reported-by: syzbot+6245cb95ae707991bffa@syzkaller.appspotmail.com
Signed-off-by: Michail Tatas <michail.tatas@gmail.com>
---
syzbot link: https://syzkaller.appspot.com/bug?extid=6245cb95ae707991bffa
drivers/gpu/drm/vkms/vkms_plane.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/vkms/vkms_plane.c b/drivers/gpu/drm/vkms/vkms_plane.c
index 68cb2a3335e6..a2e5ebee729a 100644
--- a/drivers/gpu/drm/vkms/vkms_plane.c
+++ b/drivers/gpu/drm/vkms/vkms_plane.c
@@ -246,6 +246,12 @@ struct vkms_plane *vkms_plane_init(struct vkms_device *vkmsdev,
DRM_COLOR_YCBCR_BT601,
DRM_COLOR_YCBCR_FULL_RANGE);
+ /* Since our composer only supports pre-multiplied alpha,
+ * advertise only the PREMULTI blend mode.
+ */
+ drm_plane_create_blend_mode_property(&plane->base,
+ BIT(DRM_MODE_BLEND_PREMULTI));
+
if (vkms_config_plane_get_default_pipeline(plane_cfg))
vkms_initialize_colorops(&plane->base);
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] [PATCH] drm/vkms: Advertise PREMULTI blend mode
2026-07-20 0:17 [PATCH] [PATCH] drm/vkms: Advertise PREMULTI blend mode Michail Tatas
@ 2026-07-22 14:40 ` Joshua Peisach
2026-07-22 15:03 ` Joshua Peisach
2026-07-22 15:39 ` Louis Chauvet
1 sibling, 1 reply; 4+ messages in thread
From: Joshua Peisach @ 2026-07-22 14:40 UTC (permalink / raw)
To: Michail Tatas, louis.chauvet, simona, melissa.srw, mripard,
tzimmermann, airlied, hamohammed.sa, maarten.lankhorst
Cc: dri-devel, linux-kernel
On Sun Jul 19, 2026 at 8:17 PM EDT, Michail Tatas wrote:
> Since we only support pre-multiplied alpha blend mode,
> advertise that, otherwise validate_blend_mode_for_alpha_formats()
> will throw a WARN.
>
> Reported-by: syzbot+6245cb95ae707991bffa@syzkaller.appspotmail.com
> Signed-off-by: Michail Tatas <michail.tatas@gmail.com>
> ---
>
> syzbot link: https://syzkaller.appspot.com/bug?extid=6245cb95ae707991bffa
>
> drivers/gpu/drm/vkms/vkms_plane.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/vkms/vkms_plane.c b/drivers/gpu/drm/vkms/vkms_plane.c
> index 68cb2a3335e6..a2e5ebee729a 100644
> --- a/drivers/gpu/drm/vkms/vkms_plane.c
> +++ b/drivers/gpu/drm/vkms/vkms_plane.c
> @@ -246,6 +246,12 @@ struct vkms_plane *vkms_plane_init(struct vkms_device *vkmsdev,
> DRM_COLOR_YCBCR_BT601,
> DRM_COLOR_YCBCR_FULL_RANGE);
>
> + /* Since our composer only supports pre-multiplied alpha,
> + * advertise only the PREMULTI blend mode.
> + */
> + drm_plane_create_blend_mode_property(&plane->base,
> + BIT(DRM_MODE_BLEND_PREMULTI));
> +
> if (vkms_config_plane_get_default_pipeline(plane_cfg))
> vkms_initialize_colorops(&plane->base);
>
Hi,
Unfortunately, this still causes the warning on my machine. In my
config CONFIG_DRM_VKMS is not set.
-Josh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] [PATCH] drm/vkms: Advertise PREMULTI blend mode
2026-07-22 14:40 ` Joshua Peisach
@ 2026-07-22 15:03 ` Joshua Peisach
0 siblings, 0 replies; 4+ messages in thread
From: Joshua Peisach @ 2026-07-22 15:03 UTC (permalink / raw)
To: Joshua Peisach, Michail Tatas, louis.chauvet, simona, melissa.srw,
mripard, tzimmermann, airlied, hamohammed.sa, maarten.lankhorst
Cc: dri-devel, linux-kernel
On Wed Jul 22, 2026 at 10:40 AM EDT, Joshua Peisach wrote:
>
> Hi,
>
> Unfortunately, this still causes the warning on my machine. In my
> config CONFIG_DRM_VKMS is not set.
>
> -Josh
Sorry, disregard. This was meant to be a fix for just VKMS. I was lead
here by syzkaller thinking it would fix it for all.
-Josh
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] [PATCH] drm/vkms: Advertise PREMULTI blend mode
2026-07-20 0:17 [PATCH] [PATCH] drm/vkms: Advertise PREMULTI blend mode Michail Tatas
2026-07-22 14:40 ` Joshua Peisach
@ 2026-07-22 15:39 ` Louis Chauvet
1 sibling, 0 replies; 4+ messages in thread
From: Louis Chauvet @ 2026-07-22 15:39 UTC (permalink / raw)
To: Michail Tatas, simona, melissa.srw, mripard, tzimmermann, airlied,
hamohammed.sa, maarten.lankhorst
Cc: dri-devel, linux-kernel
On 7/20/26 02:17, Michail Tatas wrote:
> Since we only support pre-multiplied alpha blend mode,
> advertise that, otherwise validate_blend_mode_for_alpha_formats()
> will throw a WARN.
>
> Reported-by: syzbot+6245cb95ae707991bffa@syzkaller.appspotmail.com
> Signed-off-by: Michail Tatas <michail.tatas@gmail.com>
Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com>
> ---
>
> syzbot link: https://syzkaller.appspot.com/bug?extid=6245cb95ae707991bffa
>
> drivers/gpu/drm/vkms/vkms_plane.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/vkms/vkms_plane.c b/drivers/gpu/drm/vkms/vkms_plane.c
> index 68cb2a3335e6..a2e5ebee729a 100644
> --- a/drivers/gpu/drm/vkms/vkms_plane.c
> +++ b/drivers/gpu/drm/vkms/vkms_plane.c
> @@ -246,6 +246,12 @@ struct vkms_plane *vkms_plane_init(struct vkms_device *vkmsdev,
> DRM_COLOR_YCBCR_BT601,
> DRM_COLOR_YCBCR_FULL_RANGE);
>
> + /* Since our composer only supports pre-multiplied alpha,
> + * advertise only the PREMULTI blend mode.
> + */
> + drm_plane_create_blend_mode_property(&plane->base,
> + BIT(DRM_MODE_BLEND_PREMULTI));
> +
> if (vkms_config_plane_get_default_pipeline(plane_cfg))
> vkms_initialize_colorops(&plane->base);
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-22 15:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-20 0:17 [PATCH] [PATCH] drm/vkms: Advertise PREMULTI blend mode Michail Tatas
2026-07-22 14:40 ` Joshua Peisach
2026-07-22 15:03 ` Joshua Peisach
2026-07-22 15:39 ` Louis Chauvet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox