drm_plane_cr...ode_property(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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: when BIT(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 πŸ‘‘


🌈 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