drm/ast: Move cursor pageflip into helper
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 2 Jul 2020 11:50:20 +0000 (13:50 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 7 Jul 2020 09:11:31 +0000 (11:11 +0200)
commit75d9d8e66db834551e81e74e522c2900fe93ef5c
tree216be7693aed1cf6c8168d0a3d368a13bf4e85ca
parent932a62aa3bfd96ec44799fec3523756e531988dc
drm/ast: Move cursor pageflip into helper

The new helper ast_cursor_page_flip() switches the cursor's front and
back BOs. This simplifies the cursor plane's update helper.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200702115029.5281-6-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_cursor.c
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_mode.c