drm_atomic_h...plane_damage(9)
β¨ drm_atomic_h...plane_damage(9) β¨
okay bestie, so this is a page straight out of the Kernel API Manual, and it's about a lil helper that does a vibe check on your plane damage during atomic_check. it's tiny, it's important, let's get into it. π
π¦ NAME π¦
drm_atomic_helper_check_plane_damage β literally just Verify plane damage on atomic_check. that's it, that's the whole job, and it does it well. π
πΈ SYNOPSIS πΈ
void drm_atomic_helper_check_plane_damage (struct drm_atomic_commit
*state , struct drm_plane_state
*plane_state );
it returns void, so likeβ¦ no return value to obsess over. it just happens. β¨
π«Ά ARGUMENTS π«Ά
stateβ the driver state object. yep, the whole state situation. πplane_stateβ the plane state for which we're verifying damage. this is the one getting inspected, bestie. π
π DESCRIPTION π
so the way this works is: this helper function makes sure that damage from plane state is discarded for full modeset. like, if you're doing a full modeset, all that nitpicky damage info gets yeeted, periodt. π
and if there are, like, more reasons a driver would want to do a full plane update rather than processing individual damage regions? then those cases should be taken care of here. this is the spot. this is the function. don't go looking elsewhere. π
now the fine print, and this part matters fr fr:
note that drm_plane_state.fb_damage_clips == NULL in plane state means that a full plane update should happen. that's the signal, that's the flag, that's the whole mood.
it also ensures the helper iterator will return drm_plane_state.src as damage. so the iterator's got your back. π§
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_damage_helper.cβ go read the source, iykyk π drm_atomic_helper_dirtyfb(9)drm_atomic_helper_damage_iter_init(9)drm_atomic_helper_damage_iter_next(9)drm_atomic_helper_damage_merged(9)
ok that's the whole page, no cap. short and iconic. π
much love from ./drivers/gpu/drm, October 2026, xoxo β drm_atomic_h...plane_damage(9) πβ¨π¦
π¦ 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