]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ast: Move cursor fb pinning and mapping into helper
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 2 Jul 2020 11:50:18 +0000 (13:50 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 7 Jul 2020 09:11:24 +0000 (11:11 +0200)
commit1475125d002be1537cf8c9fe3ee93096ab6d9437
treeb0b664d2af93fa1111df0764ed77f3e5ac3aeba9
parent2cfa2aee49fb491a1289b29f160077c8789ad56c
drm/ast: Move cursor fb pinning and mapping into helper

The new helper ast_cursor_blit() updates a cursor's backbuffer HW
BO from a framebuffer structure. The cursor plane's prepare_fb()
function now uses the new interface.

Pinning and mapping of BOs is done automatically by the helper. This
includes the source BO, which was not pinned by the original code in
prepare_fb().

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