drm_plane_cr...ode_property(9)
π NAME π
drm_plane_create_blend_mode_property β create a new blend mode property
okay so picture this: you're deep in the kernel, you've got a plane, and you need a fresh blend mode property. That's the whole gig. Iconic, honestly.
(fyi the page header up top calls this thing drm_plane_cr...ode_property(9), because even the manpage couldn't fit the whole name in β the full function is drm_plane_create_blend_mode_property, and yes she's from the Kernel API Manual, section 9 π)
β¨ SYNOPSIS β¨
int drm_plane_create_blend_mode_property (struct drm_plane *plane ,
unsigned int supported_modes );
π«Ά ARGUMENTS π«Ά
planeβ the drm plane. Your main character. The whole property gets built for her πsupported_modesβ a bitmask of supported modes. Lowkey the important detail: whenBIT(DRM_MODE_BLEND_PREMULTI)is included in that mask, it gets used as the default. Otherwise the default falls back to one of the supported modes. No cap, that's the rule πΈ
π¦ DESCRIPTION π¦
So what does this thing actually do? It creates a new property describing the blend mode. That's it, that's the vibe π
The property that gets exposed to userspace is an enumeration property (peep drm_property_create_enum for the receipts) and it's called "pixel blend mode". It ships with these enumeration values:
"None"β blend formula that ignores the pixel alpha. Alpha? Never heard of her."Pre-multiplied"β blend formula that assumes the pixel color values have already been pre-multiplied with the alpha channel values. The work is done, bestie, she pre-gamed."Coverage"β blend formula that assumes the pixel color values have not been pre-multiplied, and will do so when blending them to the background color values. DIY alpha moment π§
π₯ RETURN π₯
Zero for success, or -errno. That's the whole spectrum. Zero = slay, -errno = not slay π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_blend.c overview(9)drm_plane_create_alpha_property(9)drm_plane_create_rotation_property(9)drm_rotation_simplify(9)drm_plane_create_zpos_property(9)drm_plane_create_zpos_immutable_property(9)drm_atomic_normalize_zpos(9)drm_crtc_attach_background_color_property(9)
π okay that's the whole page! Source directory is ./drivers/gpu/drm, dated October 2026, and the manual tag for the girlies keeping track is drm_plane_cr...ode_property(9). Go build your properties, bestie β you're literally so good at this πβ¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms