drm/ast: Set format registers in primary plane's update
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 14 Sep 2020 07:22:33 +0000 (09:22 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 16 Sep 2020 11:07:25 +0000 (13:07 +0200)
commit5638c82cdabd95c8e82672760a9799c2f2848ba9
treea201405392119ef5d699646626d95e567a4c6573
parent2e96af20c618a5112a19cfc64ec0eb522084df38
drm/ast: Set format registers in primary plane's update

The atomic modesetting code tried to distinguish format changes from
full modesetting operations. But the implementation was buggy and the
format registers were often updated even for simple pageflips.

Fix this problem by handling format changes in the primary plane's
update function.

v3:
* program format in primary plane's update function

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200914072236.19398-2-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_mode.c