STRUCT KOMEDA_FORMAT_CAPS(9)
β¨ 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 au64, 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
- 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