drm/cirrus: Convert to regular atomic helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 15 Feb 2023 16:15:08 +0000 (17:15 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 13 Mar 2023 09:36:20 +0000 (10:36 +0100)
commitd99c028941b37c412f1de35c59d96ae547be2d0f
tree89e06647e0afb12af8704b9b625a170adb46ef72
parentfe57235bc104f2389ae1a54ea2536c1b1d6a4611
drm/cirrus: Convert to regular atomic helpers

Replace simple-KMS helpers with DRM's regular helpers for atomic
modesetting. Avoids the mid-layer and the additional wrappers around
GEM's shadow-plane helpers.

Most of the simple-KMS code is just wrappers around regular atomic
helpers. The conversion is therefore equivalent to pulling the
simple-KMS helpers into cirrus and removing all the intermediate
code and data structures between the driver and the atomic helpers.
As the simple-KMS helpers lump primary plan, CRTC and encoder into a
single data structure, the conversion to regular helpers allows to
split modesetting from plane updates and handle each individually.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230215161517.5113-9-tzimmermann@suse.de
drivers/gpu/drm/tiny/cirrus.c