Forwarded: [PATCH] drm/vkms: Advertise PREMULTI blend mode

From: syzbot

Date: Sat Jul 18 2026 - 09:47:34 EST


For archival purposes, forwarding an incoming command email to
linux-kernel@xxxxxxxxxxxxxxx.

***

Subject: [PATCH] drm/vkms: Advertise PREMULTI blend mode
Author: michail.tatas@xxxxxxxxx

#syz test

Since we only support pre-multiplied alpha blend mode,
advertise that.

Signed-off-by: Michail Tatas <michail.tatas@xxxxxxxxx>
---
drivers/gpu/drm/vkms/vkms_plane.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/vkms/vkms_plane.c b/drivers/gpu/drm/vkms/vkms_plane.c
index 68cb2a3335e6..8c67511d6e8c 100644
--- a/drivers/gpu/drm/vkms/vkms_plane.c
+++ b/drivers/gpu/drm/vkms/vkms_plane.c
@@ -246,6 +246,13 @@ 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