drm_plane_has_format(9)
π drm_plane_has_format(9) β the kernel API manual, but make it cute
okay bestie, welcome to the drm_plane_has_format(9) page π this is a kernel API manual thingy and we're gonna get through it together, no cap.
β¨ NAME β¨
drm_plane_has_format β literally just checks whether the plane supports this format and modifier combo π
πΈ SYNOPSIS πΈ
bool drm_plane_has_format (struct drm_plane *plane , u32 format , u64
modifier );
that's it, that's the whole~~vibe~~ signature π
π¦ ARGUMENTS π¦
planeβ the drm plane, the main character of this whole situation πformatβ the pixel format, and it's aDRM_FORMAT_*one, so keep that in mind bestiemodifierβ the data layout modifier, lowkey important
β RETURN β
returns whether the plane supports the specified format and modifier combination β like, it's a bool, so it's giving yes or no, and nothing in between π«Ά
π SEE ALSO π
the whole friend group, fr fr:
- the kernel file
./drivers/gpu/drm/drm_plane.cβoverview(9) standard plane properties(9)hotspot properties(9)drm_plane_create_hotspot_properties(9)drm_universal_plane_init(9)drm_plane_cleanup(9)drm_plane_from_index(9)drm_plane_force_disable(9)drm_mode_plane_set_obj_prop(9)drm_any_plane_has_format(9)damage tracking(9)drm_plane_enable_fb_damage_clips(9)drm_plane_get_damage_clips_count(9)drm_plane_get_damage_clips(9)drm_plane_create_scaling_filter_property(9)drm_plane_add_size_hints_property(9)drm_plane_create_color_pipeline_property(9)
ok that's the whole page bestie, you ate that π go check the plane before you use it, always π
sign-off time π this little page lives in ./drivers/gpu/drm, it's dated October 2026, and the whole thing is the drm_plane_has_format(9) man page β iconic, periodt. ππ§
π¦ 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