drm_atomic_...amage_merged(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 ⭐

  • True if there is valid plane damage πŸ’–
  • false otherwise πŸ™ˆ

literally that simple. vibe check passed.


πŸ”₯ SEE ALSO πŸ”₯

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