drm_atomic_...amage_merged(9)
π drm_atomic_...amage_merged(9) π
okay so bestie, you've stumbled into the Kernel API Manual and honestly? iconic. this is <rainbow>drm_atomic_...amage_merged(9)</rainbow> and it's about merging plane damage into one rectangle. yes, that's the whole vibe. let's get into it π«Ά
β¨ NAME β¨
drm_atomic_helper_damage_merged β merged plane damage. that's it, that's the name, slay.
πΈ SYNOPSIS πΈ
bool drm_atomic_helper_damage_merged (const struct drm_plane_state
*old_state , const struct drm_plane_state *state , struct drm_rect *rect
);
look at that signature. it's giving takes three things, returns a bool. we love a return type that just says yes or no, no cap π
π ARGUMENTS π
old_stateβ the old plane state, used for validation. like the ex you check against before committing to the new one πstateβ the plane state you're iterating the damage clips from. this is the main character here, fr fr πrectβ this one's an output, bestie: it returns the merged damage rectangle. so it goes in empty-ish and comes back with the goods β¨
π¦ DESCRIPTION π¦
so what does it actually do? it merges any valid plane damage clips into one rectangle and hands it back to you in rect. one rect. merged. clean. immaculate. π
for the deets, go look at drm_atomic_helper_damage_iter_init and drm_atomic_helper_damage_iter_next β those are the iterating besties doing the legwork behind the scenes π§
β RETURN β
Trueif there is valid plane damage πfalseotherwise π
literally that simple. vibe check passed.
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/drm_damage_helper.c drm_atomic_helper_check_plane_damage(9)drm_atomic_helper_dirtyfb(9)drm_atomic_helper_damage_iter_init(9)drm_atomic_helper_damage_iter_next(9)
go read those, iykyk π
and that's the whole page, bestie! this one lives in ./drivers/gpu/drm and it's dated October 2026, so jot that down in your notes π β drm_atomic_...amage_merged(9), Kernel API Manual, done and dusted. mwah ππ
π¦ 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