[2/2] drm: rcar-du: Add alpha support for VSP planes

Submitted by Laurent Pinchart on April 21, 2016, 1:14 a.m.

Details

Message ID 1461201253-12170-3-git-send-email-laurent.pinchart+renesas@ideasonboard.com
State New
Headers show
Series "Renesas R-Car Gen3 DU alpha and z-order support" ( rev: 1 ) in DRI devel

Not browsing as part of any series.

Commit Message

Laurent Pinchart April 21, 2016, 1:14 a.m.
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@ideasonboard.com>
---
 drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Patch hide | download patch | download mbox

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 = {