OSDN Git Service

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)
commitdd004b9a5505f9810f66a9ddfbdf02978703f1f6
treeb0b664d2af93fa1111df0764ed77f3e5ac3aeba9
parentbeb2355eecbf67d2fce79af73215c875173d9990
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