]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Add helper iterator functions for plane fb_damage_clips blob
authorDeepak Rawat <drawat@vmware.com>
Wed, 30 May 2018 21:42:52 +0000 (14:42 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 5 Dec 2018 09:00:36 +0000 (10:00 +0100)
commitce27577c8cf7c49ca19fea7d7c85df15c511d28f
tree246c3fb3d996f924705c9d4c1f0a4af580ca2cec
parent7e1f8c7fc07b16a2b027be83cbd0a4b937fa7637
drm: Add helper iterator functions for plane fb_damage_clips blob

With fb_damage_clips blob property in drm_plane_state, this patch adds
helper iterator to traverse the damage clips that lie inside plane src.
Iterator will return full plane src as damage in case need full plane
update or damage is not specified.

v2:
- Plane src clipping correction
- Handle no plane update case in iter_next

Signed-off-by: Deepak Rawat <drawat@vmware.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/drm_damage_helper.c
include/drm/drm_damage_helper.h
include/drm/drm_plane.h