[PATCH 2/2] drm: rcar-du: Add alpha support for VSP planes
Laurent Pinchart
laurent.pinchart+renesas at ideasonboard.com
Thu Apr 21 01:14:13 UTC 2016
Make the global alpha multiplier of VSP planes configurable through the
alpha property, exactly as for the native DU planes.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas at ideasonboard.com>
---
drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_vsp.c b/drivers/gpu/drm/rcar-du/rcar_du_vsp.c
index 62e9619eaea4..7a588f1f6d69 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_vsp.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_vsp.c
@@ -180,9 +180,9 @@ static void rcar_du_vsp_plane_setup(struct rcar_du_vsp_plane *plane)
WARN_ON(!pixelformat);
- vsp1_du_atomic_update_zpos(plane->vsp->vsp, plane->index, pixelformat,
- fb->pitches[0], paddr, &src, &dst,
- state->zpos);
+ vsp1_du_atomic_update_ext(plane->vsp->vsp, plane->index, pixelformat,
+ fb->pitches[0], paddr, &src, &dst,
+ state->alpha, state->zpos);
}
static int rcar_du_vsp_plane_atomic_check(struct drm_plane *plane,
@@ -221,8 +221,8 @@ static void rcar_du_vsp_plane_atomic_update(struct drm_plane *plane,
if (plane->state->crtc)
rcar_du_vsp_plane_setup(rplane);
else
- vsp1_du_atomic_update_zpos(rplane->vsp->vsp, rplane->index,
- 0, 0, 0, NULL, NULL, 0);
+ vsp1_du_atomic_update_ext(rplane->vsp->vsp, rplane->index,
+ 0, 0, 0, NULL, NULL, 0, 0);
}
static const struct drm_plane_helper_funcs rcar_du_vsp_plane_helper_funcs = {
--
2.7.3
More information about the dri-devel
mailing list