aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2021-05-18 23:40:29 +0000
committerJohn Stultz <john.stultz@linaro.org>2021-06-07 21:31:50 +0000
commitc731e1cee3327e491f8528cee227be9b9e30fc9e (patch)
tree160cbac095db78fa0932f9969739355be1529cb6
parent22cfc4620775b09abe592300d5891337a4aa0f5a (diff)
downloadandroid-dev-c731e1cee3327e491f8528cee227be9b9e30fc9e.tar.gz
drm/msm/dpu1: add alpha and blend properties
Inspired by patches by Dmitry Baryshkov <dmitry.baryshkov@linaro.org> for the db410c, this patch adds alpha and blend properties to the dpu1 display driver. This allows applications to see that alpha is supported by the display planes and avoids some applications from thinking it is not. Signed-off-by: John Stultz <john.stultz@linaro.org> Change-Id: I5f894f5738f60c929b663e8d7b6425a99bc3eab3
-rw-r--r--drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
index 7a993547eb75..8e7371a52432 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
@@ -1657,6 +1657,13 @@ struct drm_plane *dpu_plane_init(struct drm_device *dev,
DRM_MODE_REFLECT_X |
DRM_MODE_REFLECT_Y);
+ drm_plane_create_alpha_property(plane);
+ drm_plane_create_blend_mode_property(plane,
+ BIT(DRM_MODE_BLEND_PIXEL_NONE) |
+ BIT(DRM_MODE_BLEND_PREMULTI) |
+ BIT(DRM_MODE_BLEND_COVERAGE));
+
+
drm_plane_enable_fb_damage_clips(plane);
/* success! finalize initialization */