在 2026-09-10四的 10:49 +0200,Thomas Zimmermann写道: > > > Am 01.09.26 um 19:17 schrieb Icenowy Zheng: > > Blend modes are now required to expose pixel formats w/ alpha. > > > > As it's the primary plane and blending is explicitly disabled, just > > expose PIXEL_NONE blend mode. > > > > Signed-off-by: Icenowy Zheng <[email protected]> > > --- > > drivers/gpu/drm/verisilicon/vs_primary_plane.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/drivers/gpu/drm/verisilicon/vs_primary_plane.c > > b/drivers/gpu/drm/verisilicon/vs_primary_plane.c > > index 1f2be41ae496c..8d58682d88ef8 100644 > > --- a/drivers/gpu/drm/verisilicon/vs_primary_plane.c > > +++ b/drivers/gpu/drm/verisilicon/vs_primary_plane.c > > @@ -7,6 +7,7 @@ > > > > #include <drm/drm_atomic.h> > > #include <drm/drm_atomic_helper.h> > > +#include <drm/drm_blend.h> > > #include <drm/drm_crtc.h> > > #include <drm/drm_fourcc.h> > > #include <drm/drm_framebuffer.h> > > @@ -179,5 +180,7 @@ struct drm_plane *vs_primary_plane_init(struct > > drm_device *drm_dev, struct vs_dc > > > > drm_plane_helper_add(plane, > > &vs_primary_plane_helper_funcs); > > > > + drm_plane_create_blend_mode_property(plane, > > + > > BIT(DRM_MODE_BLEND_PIXEL_NONE)); > > No empty line before that call. I think it also fits onto a single
The plane blend mode call exceeds 80 columns (82 columns for COVERAGE and 83 columns for PIXEL_NONE), although I heard that sometimes the limit is 100 columns instead (but coding-style.rst still says 80 columns is preferred). Thanks, Icenowy > line. > Apart from the style > > Reviewed-by: Thomas Zimmermann <[email protected]> > > > > return plane; > > }
