]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/plane: Allocate planes with drm_universal_plane_alloc()
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 9 Sep 2022 10:59:45 +0000 (12:59 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 20 Sep 2022 07:41:06 +0000 (09:41 +0200)
commite71def057252c0b5189618ecbc7141b56db4a74b
treee582cf5c9431da6832ab70f62d0cb44276cdeab9
parent7221941c4f3249f6e67090820c827326e2e4459f
drm/plane: Allocate planes with drm_universal_plane_alloc()

Provide drm_univeral_plane_alloc() to allocate and initialize a
plane. Code for non-atomic drivers uses this pattern. Convert them to
the new function. The modeset helpers contain a quirk for handling their
color formats differently. Set the flag outside plane allocation.

The new function is already deprecated to some extend. Drivers should
rather use drmm_univeral_plane_alloc() or drm_universal_plane_init().

v2:
* kerneldoc fixes (Javier)
* grammar fixes in commit message

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com> # nouveau
Link: https://patchwork.freedesktop.org/patch/msgid/20220909105947.6487-3-tzimmermann@suse.de
drivers/gpu/drm/drm_modeset_helper.c
drivers/gpu/drm/drm_plane.c
drivers/gpu/drm/nouveau/dispnv04/crtc.c
include/drm/drm_plane.h