• Lowry Li's avatar
    drm/mali-dp: Implement plane alpha and pixel blend on malidp · 187f7f21
    Lowry Li authored
    Checks the pixel blending mode and plane alpha value when
    do the plane_check. Mali DP supports blending the current plane
    with the background either based on the pixel alpha blending
    mode or by using the layer's alpha value, but not both at the
    same time. If both case, plane_check will return failed.
    
    Sets the HW when doing plane_update accordingly. If plane alpha
    is the 0xffff, set the pixel blending bits accordingly. If not
    we'd set ALPHA bit as zero and layer alpha value.
    
    Changes since v1:
     - Introduces to use it in the malidp driver, which depends on
       the plane alpha patch
    Changes since v2:
     - Refines the comments of drm/mali-dp patchset
    Changes since v3:
     - Adds hardware limitation check
    Changes since v4:
     - Updates on drm/malidp, hardware limitation check only when
       the format has alpha pixel.
     - Rebases on drm-misc-next.
    Signed-off-by: default avatarLowry Li <lowry.li@arm.com>
    Acked-by: default avatarLiviu Dudau <liviu.dudau@arm.com>
    Signed-off-by: default avatarLiviu Dudau <liviu.dudau@arm.com>
    187f7f21
malidp_planes.c 15.5 KB