diff options
author | Noralf Trønnes <noralf@tronnes.org> | 2019-01-15 07:36:40 +0300 |
---|---|---|
committer | Noralf Trønnes <noralf@tronnes.org> | 2019-01-17 12:56:54 +0300 |
commit | 255f6fe736f4ed78e0f0eac1d6188137db798b51 (patch) | |
tree | 59077b0d104922d61645011f04e299914216f3aa /include/drm/drm_damage_helper.h | |
parent | dbd62e16fd53d37093a4695692ceac1a470f0b3f (diff) | |
download | linux-255f6fe736f4ed78e0f0eac1d6188137db798b51.tar.xz |
drm/damage-helper: Add drm_atomic_helper_damage_merged()
Useful for drivers that only care about the combined damage.
v2: Remove unnecessary clearing of damage clips
Cc: Deepak Rawat <drawat@vmware.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190115043643.2364-3-noralf@tronnes.org
Diffstat (limited to 'include/drm/drm_damage_helper.h')
-rw-r--r-- | include/drm/drm_damage_helper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_damage_helper.h b/include/drm/drm_damage_helper.h index 4487660b26b8..40c34a5bf149 100644 --- a/include/drm/drm_damage_helper.h +++ b/include/drm/drm_damage_helper.h @@ -78,6 +78,9 @@ drm_atomic_helper_damage_iter_init(struct drm_atomic_helper_damage_iter *iter, bool drm_atomic_helper_damage_iter_next(struct drm_atomic_helper_damage_iter *iter, struct drm_rect *rect); +bool drm_atomic_helper_damage_merged(const struct drm_plane_state *old_state, + struct drm_plane_state *state, + struct drm_rect *rect); /** * drm_helper_get_plane_damage_clips - Returns damage clips in &drm_rect. |