drm/plane-helper: Add a drm_plane_helper_atomic_check() helper
authorJavier Martinez Canillas <javierm@redhat.com>
Tue, 13 Sep 2022 16:23:07 +0000 (18:23 +0200)
committerJavier Martinez Canillas <javierm@redhat.com>
Fri, 16 Sep 2022 21:33:52 +0000 (23:33 +0200)
commit8401bd361f5991ccfe9377e502fa37203ad70320
tree83d5600917a56054a81e78c4124be8b5592ed36a
parente4dc45b1848bc6bcac31eb1b4ccdd7f6718b3c86
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
drivers/gpu/drm/drm_plane_helper.c
drivers/gpu/drm/solomon/ssd130x.c
drivers/gpu/drm/tiny/simpledrm.c
include/drm/drm_plane_helper.h