]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/ast: Handle primary-plane format setup in atomic_update
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 27 Jun 2024 15:27:49 +0000 (17:27 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 3 Jul 2024 07:38:16 +0000 (09:38 +0200)
commit4f3265b85fed99d279dac114a5aaf0c13353420a
tree862e3e6c4efb1d99a4b8fff002048947e686e6fd
parentfd63bf978b7b0f106c72b6392436f4223b16ab85
drm/ast: Handle primary-plane format setup in atomic_update

Several color registers are programmed in the DPMS code of the CRTC's
atomic_enable helper and the primary plane's atomic_update. It requires
the color format and the display mode.

Both code paths handle different cases: the DPMS's code will not be
executed if the color format changes without a full mode switch. The
plane's code only runs if the color format changes, but ignores
display-mode changes.

The color format is a property of the primary plane, so consolidate all
color-format code in the plane's atomic_update. Remove it from the DPMS
helper.

v2:
- clarify commit message (Jocelyn)

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