lkml.org 
[lkml]   [2021]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.10 314/593] drm: rockchip: set alpha_en to 0 if it is not used
    Date
    From: Alex Bee <knaerzche@gmail.com>

    [ Upstream commit 046e0db975695540c9d9898cdbf0b60533d28afb ]

    alpha_en should be set to 0 if it is not used, i.e. to disable alpha
    blending if it was enabled before and should be disabled now.

    Fixes: 2aae8ed1f390 ("drm/rockchip: Add per-pixel alpha support for the PX30 VOP")
    Signed-off-by: Alex Bee <knaerzche@gmail.com>
    Signed-off-by: Heiko Stuebner <heiko@sntech.de>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210528130554.72191-6-knaerzche@gmail.com
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
    index c80f7d9fd13f..0f23144491e4 100644
    --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
    +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
    @@ -1013,6 +1013,7 @@ static void vop_plane_atomic_update(struct drm_plane *plane,
    VOP_WIN_SET(vop, win, alpha_en, 1);
    } else {
    VOP_WIN_SET(vop, win, src_alpha_ctl, SRC_ALPHA_EN(0));
    + VOP_WIN_SET(vop, win, alpha_en, 0);
    }

    VOP_WIN_SET(vop, win, enable, 1);
    --
    2.30.2


    \
     
     \ /
      Last update: 2021-07-12 09:10    [W:2.509 / U:0.452 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site