summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_damage_helper.h
diff options
context:
space:
mode:
authorDeepak Rawat <drawat@vmware.com>2018-08-08 17:36:26 -0700
committerThomas Hellstrom <thellstrom@vmware.com>2018-12-05 10:00:36 +0100
commitd9778b40260950a01a00852be43ca6c5c2d97f69 (patch)
treef3c18d2cff656b2d7a16549f6b9ffaa8a097184b /include/drm/drm_damage_helper.h
parentd3b21767821ed322a4024c99bc360cd0892f3d82 (diff)
downloadlinux-0-day-d9778b40260950a01a00852be43ca6c5c2d97f69.tar.gz
linux-0-day-d9778b40260950a01a00852be43ca6c5c2d97f69.tar.xz
drm: Add a new helper to validate damage during atomic_check
This helper function makes sure that damage from plane state is discarded for full modeset. 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>
Diffstat (limited to 'include/drm/drm_damage_helper.h')
-rw-r--r--include/drm/drm_damage_helper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_damage_helper.h b/include/drm/drm_damage_helper.h
index 4947c614fff9b..59584cbf3d408 100644
--- a/include/drm/drm_damage_helper.h
+++ b/include/drm/drm_damage_helper.h
@@ -35,5 +35,7 @@
#include <drm/drm_atomic_helper.h>
void drm_plane_enable_fb_damage_clips(struct drm_plane *plane);
+void drm_atomic_helper_check_plane_damage(struct drm_atomic_state *state,
+ struct drm_plane_state *plane_state);
#endif