Home | History | Annotate | Download | only in drm

Lines Matching defs:damage

46  * specify a list of damage rectangles on a plane in framebuffer coordinates of
47 * the framebuffer attached to the plane. In current context damage is the area
57 * ignore damage clips property and in that case driver will do a full plane
58 * update. In case damage clips are provided then it is guaranteed that the area
59 * inside damage clips will be updated to plane. For efficiency driver can do
60 * full update or can update more than specified in damage clips. Since driver
63 * provides damage clips which doesn't encompass the actual damage to
68 * damage clips are not in 16.16 fixed point. Similar to plane src in
69 * framebuffer, damage clips cannot be negative. In damage clip, x1/y1 are
71 * damage clips, it is strongly discouraged.
73 * Drivers that are interested in damage interface for plane should enable
75 * Drivers implementing damage can use drm_atomic_helper_damage_iter_init() and
76 * drm_atomic_helper_damage_iter_next() helper iterator function to get damage
96 * drm_plane_enable_fb_damage_clips - Enables plane fb damage clips property.
97 * @plane: Plane on which to enable damage clips property.
99 * This function lets driver to enable the damage clips property on a plane.
112 * drm_atomic_helper_check_plane_damage - Verify plane damage on atomic_check.
114 * @plane_state: Plane state for which to verify damage.
116 * This helper function makes sure that damage from plane state is discarded
118 * plane update rather than processing individual damage regions, then those
123 * &drm_plane_state.src as damage.
154 * A helper to implement &drm_framebuffer_funcs.dirty using damage interface
171 struct drm_property_blob *damage = NULL;
206 damage = drm_property_create_blob(fb->dev,
209 if (IS_ERR(damage)) {
210 ret = PTR_ERR(damage);
211 damage = NULL;
236 damage);
249 drm_property_blob_put(damage);
263 * drm_atomic_helper_damage_iter_init - Initialize the damage iterator.
266 * @state: Plane state from which to iterate the damage clips.
268 * Initialize an iterator, which clips plane damage
270 * returns full plane src in case damage is not present because either
273 * changed but that can be changed in future to return damage.
308 * drm_atomic_helper_damage_iter_next - Advance the damage iterator.
312 * Since plane src is in 16.16 fixed point and damage clips are whole number,
315 * off for full plane src, in case it's returned as damage. This iterator will
316 * skip damage clips outside of plane src.
350 * drm_atomic_helper_damage_merged - Merged plane damage
352 * @state: Plane state from which to iterate the damage clips.
353 * @rect: Returns the merged damage rectangle
355 * This function merges any valid plane damage clips into one rectangle and
362 * True if there is valid plane damage otherwise false.