From: Dmitry Baryshkov Date: Tue, 25 May 2021 13:13:13 +0000 (+0300) Subject: drm/msm/mdp5: add support for alpha/blend_mode properties X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=ed6b97e5b5a78fbdf7dbfa2745db7289fc333d7f;p=kernel.git 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 Link: https://lore.kernel.org/r/20210525131316.3117809-5-dmitry.baryshkov@linaro.org Signed-off-by: Rob Clark --- diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c index 90cd825df16b7..9c678e336e7a1 100644 --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c @@ -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