drm/ast: Enable primary plane with CRTC
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 17 Jun 2022 10:32:26 +0000 (12:32 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 27 Jun 2022 09:10:43 +0000 (11:10 +0200)
commit016a14beac6d407c9a51f0b92d1e586a00bfc345
tree3ae092f743ffb2a4c14ba7bbafdc806cbcd0e669
parentdc2cdd17d1fe25c8d25c306a90cfc9ff17a7ca4f
drm/ast: Enable primary plane with CRTC

As the CRTC requires a primary plane for display, ensure that the
primary plane is enabled with the CRTC.

Use drm_atomic_helper_check_crtc_state(). Add all affected planes
to the atomic state so that their state will be checked as well.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220617103226.25617-4-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_mode.c