]> 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)
commit2365bd3fa5f60c8ba89d6ffced453040deb9a9ff
treeb0b664d2af93fa1111df0764ed77f3e5ac3aeba9
parent312041cddc80b7e58c403de2b717bca10e9ff6d3
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