]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit77903e43290bbeef2815dd5c85d475b35b2fb51e
tree83d5600917a56054a81e78c4124be8b5592ed36a
parent31d8d690425748129a7486b5c52f964245438f0c
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