aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/drm
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javierm@redhat.com>2022-09-13 18:23:07 +0200
committerJavier Martinez Canillas <javierm@redhat.com>2022-09-16 23:33:52 +0200
commit8401bd361f5991ccfe9377e502fa37203ad70320 (patch)
tree83d5600917a56054a81e78c4124be8b5592ed36a /include/drm
parentdrm/sched: Use parent fence instead of finished (diff)
downloadwireguard-linux-8401bd361f5991ccfe9377e502fa37203ad70320.tar.xz
wireguard-linux-8401bd361f5991ccfe9377e502fa37203ad70320.zip
drm/plane-helper: Add a drm_plane_helper_atomic_check() helper
Provides a default plane state check handler for primary planes that are a fullscreen scanout buffer and whose state scale and position can't change. There are some drivers that duplicate this logic in their helpers, such as simpledrm and ssd130x. Factor out this common code into a plane helper and make drivers use it. Suggested-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20220913162307.121503-1-javierm@redhat.com
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_plane_helper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_plane_helper.h b/include/drm/drm_plane_helper.h
index 1781fab24dd6..7760b27b0323 100644
--- a/include/drm/drm_plane_helper.h
+++ b/include/drm/drm_plane_helper.h
@@ -41,5 +41,6 @@ int drm_plane_helper_update_primary(struct drm_plane *plane, struct drm_crtc *cr
int drm_plane_helper_disable_primary(struct drm_plane *plane,
struct drm_modeset_acquire_ctx *ctx);
void drm_plane_helper_destroy(struct drm_plane *plane);
+int drm_plane_helper_atomic_check(struct drm_plane *plane, struct drm_atomic_state *state);
#endif