]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ast: Reload gamma LUT after changing primary plane's color format
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 22 Sep 2020 14:46:55 +0000 (16:46 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 25 Nov 2020 08:13:20 +0000 (09:13 +0100)
commitbc15084f240d9c25abb5600a49038faaade698c9
treeb4ba7268ab3b91b44c3e1e49a8013a005f888da4
parenteba7af8a561b10fd28600f2907eaef607937a268
drm/ast: Reload gamma LUT after changing primary plane's color format

The gamma LUT has to be reloaded after changing the primary plane's
color format. This used to be done implicitly by the CRTC atomic_enable()
helper after updating the primary plane. With the recent reordering of
the steps, the primary plane's setup was moved last and invalidated
the gamma LUT. Fix this by setting the LUT from within atomic_flush().

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Fixes: 828ffdc85fa5 ("drm/ast: Enable CRTC before planes")
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Dave Airlie <airlied@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Link: https://patchwork.freedesktop.org/patch/msgid/20200922144655.23624-1-tzimmermann@suse.de
(cherry-picked from 8e3784dfef8a03143b13e7e4011f276a954f1bc6)
drivers/gpu/drm/ast/ast_mode.c