Skip to content

Commit

Permalink
drm/msm/mdp5: add support for alpha/blend_mode properties
Browse files Browse the repository at this point in the history
Hook alpha and pixel blend mode support to be exported as proper DRM
plane properties. This allows using this functionality from the
userspace.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20210525131316.3117809-5-dmitry.baryshkov@linaro.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
  • Loading branch information
Dmitry Baryshkov authored and Rob Clark committed Jun 23, 2021
1 parent a4fdc26 commit ed6b97e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ static void mdp5_plane_install_properties(struct drm_plane *plane,
INSTALL_RANGE_PROPERTY(zpos, ZPOS, 1, 255, 1);

mdp5_plane_install_rotation_property(dev, plane);
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));

#undef INSTALL_RANGE_PROPERTY
#undef INSTALL_ENUM_PROPERTY
Expand Down

0 comments on commit ed6b97e

Please sign in to comment.