STRUCT KOMEDA_FORMAT_CAPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct komeda_format_caps(9) ✨

okay so this is a page straight outta the Kernel API Manual β€” yes that Kernel API Manual πŸ’… β€” and it's all about struct komeda_format_caps. she's niche, she's ARM-display-coded, and she's here to tell you what a format can and can't do. let's get into it 🫢


🌸 NAME 🌸

struct komeda_format_caps β€” literally the struct, bestie. the original doesn't even give her a tagline, she just is.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct komeda_format_caps {
    u32 hw_id;
    u32 fourcc;
    u32 supported_layer_types;
    u32 supported_rots;
    u32 supported_afbc_layouts;
    u64 supported_afbc_features;
};

look at her. six fields. no notes. iconic πŸ‘‘


πŸŽ€ Members πŸŽ€

  • hw_id β€” the hw format id, and it's a hw-specific value. so like… hardware's own little name tag 🏷️
  • fourcc β€” the drm fourcc format. your classic four-character-code moment ✨
  • supported_layer_types β€” tells you which layer actually supports this format. like, who's invited to the party πŸ’Œ
  • supported_rots β€” the allowed rotations for this format. spin it, but only the legal amount πŸ”„
  • supported_afbc_layouts β€” the supported afbc layerout. (that's a layerout, not a layout β€” copying it exactly because the manpage said so, no cap πŸ™ˆ)
  • supported_afbc_features β€” the supported afbc features. it's a u64, she's got range πŸ’œ

🌈 Description 🌈

so komeda_format_caps is for describing ARM display specific features and limitations for a specific format. that's her whole job. main character energy, honestly πŸ‘‘

and here's the cute part: format_caps will be linked into komeda_framebuffer like a extension of drm_format_info. yes, exactly like that β€” "a extension". we don't fix the grammar of the source, we respect the source 😭🫢


πŸ’€ NOTE πŸ’€

one fourcc may has two different format_caps items for fourcc and fourcc+modifier. 🚨

(again: "may has". the manpage said it, so i said it. fr fr.)


⭐ SEE ALSO ⭐

  • Kernel file ./drivers/gpu/drm/arm/display/komeda/komeda_format_caps.h πŸ—‚οΈ
  • struct komeda_format_caps_table(9) β€” the sequel, go read it 🧚

okay that's the whole page, mwah πŸ’‹ and for the sign-off: this lil beauty lives in ./drivers/gpu/drm/arm/display/... and it's dated October 2026, so like… she's from the future, bestie. slay. πŸŽ€πŸŒΈπŸ’–

πŸ“¦ where this page comes from