aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/media/vsp1.h
diff options
context:
space:
mode:
authorTakanari Hayama <taki@igel.co.jp>2022-08-10 17:37:09 +0900
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2022-09-07 23:48:39 +0300
commit0efb6fd36644a4ba743e26ea7ac532a9d539a3ee (patch)
tree045ba8d45df06d66f544e31cacae40c794afa3fb /include/media/vsp1.h
parentMerge tag 'drm-misc-next-2022-08-20-1' of git://anongit.freedesktop.org/drm/drm-misc into drm-next (diff)
downloadwireguard-linux-0efb6fd36644a4ba743e26ea7ac532a9d539a3ee.tar.xz
wireguard-linux-0efb6fd36644a4ba743e26ea7ac532a9d539a3ee.zip
media: vsp1: Add premultiplied alpha support
To support DRM blend mode in R-Car DU driver, we must be able to pass a plane with the premultiplied alpha. Adding a new property to vsp1_du_atomic_config allows the R-Car DU driver to pass the premultiplied alpha plane. Signed-off-by: Takanari Hayama <taki@igel.co.jp> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'include/media/vsp1.h')
-rw-r--r--include/media/vsp1.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/vsp1.h b/include/media/vsp1.h
index cc1b0d42ce95..48f4a5023d81 100644
--- a/include/media/vsp1.h
+++ b/include/media/vsp1.h
@@ -51,6 +51,7 @@ int vsp1_du_setup_lif(struct device *dev, unsigned int pipe_index,
* @dst: destination rectangle on the display (integer coordinates)
* @alpha: alpha value (0: fully transparent, 255: fully opaque)
* @zpos: Z position of the plane (from 0 to number of planes minus 1)
+ * @premult: true for premultiplied alpha
*/
struct vsp1_du_atomic_config {
u32 pixelformat;
@@ -60,6 +61,7 @@ struct vsp1_du_atomic_config {
struct v4l2_rect dst;
unsigned int alpha;
unsigned int zpos;
+ bool premult;
};
/**