drm/ast: Store each HW cursor offset after pinning the rsp BO
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 9 Feb 2021 13:46:31 +0000 (14:46 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 17 Feb 2021 11:40:22 +0000 (12:40 +0100)
commit385131f3a1542987a015508e3f4e23b4163bc616
treeb570d4d8d8492635a6a4faf8693f8effe43d2b01
parent84810d6a74b7b033b8dda13f0df0c953759f5e4c
drm/ast: Store each HW cursor offset after pinning the rsp BO

As HW cursor BOs never move, we can store the offset in VRAM in the
cursor-plane's HWC state. This removes the last possible source of
runtime errors from atomic_update.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210209134632.12157-10-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_mode.c