The DE1 backend planes expose ARGB8888, ARGB4444 and ARGB1555, but the driver does not create a blend mode property for them, so the new validate_blend_mode_for_alpha_formats() also warns on A10, A20, A31 and A33:
sun4i-drm display-engine: [drm] [PLANE:31:plane-0] pixel format with alpha exposed but blend mode not setup. Please fix. The backend blends a layer onto the pipe below with the layer's own alpha channel and has no premultiply control, which is the DRM "coverage" equation. Advertise DRM_MODE_BLEND_COVERAGE for these planes as well. Signed-off-by: Yang Siyuan <[email protected]> --- drivers/gpu/drm/sun4i/sun4i_layer.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_layer.c b/drivers/gpu/drm/sun4i/sun4i_layer.c index d65587d..0e6e0d1 100644 --- a/drivers/gpu/drm/sun4i/sun4i_layer.c +++ b/drivers/gpu/drm/sun4i/sun4i_layer.c @@ -228,6 +228,13 @@ static struct sun4i_layer *sun4i_layer_init_one(struct drm_device *drm, drm_plane_create_zpos_property(&layer->plane, layer->id, 0, SUN4I_BACKEND_NUM_LAYERS - 1); + ret = drm_plane_create_blend_mode_property(&layer->plane, + BIT(DRM_MODE_BLEND_COVERAGE)); + if (ret) { + dev_err(drm->dev, "Couldn't add blend mode property\n"); + return ERR_PTR(ret); + } + return layer; } -- 2.56.1
