Skip to content

Commit ed6b97e

Browse files
lumagrobclark
authored andcommitted
drm/msm/mdp5: add support for alpha/blend_mode properties
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>
1 parent a4fdc26 commit ed6b97e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ static void mdp5_plane_install_properties(struct drm_plane *plane,
9191
INSTALL_RANGE_PROPERTY(zpos, ZPOS, 1, 255, 1);
9292

9393
mdp5_plane_install_rotation_property(dev, plane);
94+
drm_plane_create_alpha_property(plane);
95+
drm_plane_create_blend_mode_property(plane,
96+
BIT(DRM_MODE_BLEND_PIXEL_NONE) |
97+
BIT(DRM_MODE_BLEND_PREMULTI) |
98+
BIT(DRM_MODE_BLEND_COVERAGE));
9499

95100
#undef INSTALL_RANGE_PROPERTY
96101
#undef INSTALL_ENUM_PROPERTY

0 commit comments

Comments
 (0)