OSDN Git Service

drm/vc4: update cursors asynchronously through atomic
authorGustavo Padovan <gustavo.padovan@collabora.com>
Fri, 30 Mar 2018 08:54:45 +0000 (10:54 +0200)
committerEric Anholt <eric@anholt.net>
Tue, 17 Apr 2018 21:57:08 +0000 (14:57 -0700)
commit539c320bfa9778ef4a96ee4c846d230f80ca6f50
treee85d2f4af382f94ebdc3b33abe51cf9ad1f231f3
parent792718070621f6137a833fcc4a9fde77f9b6a4c5
drm/vc4: update cursors asynchronously through atomic

Add support for async updates of cursors by using the new atomic
interface for that. Basically what this commit does is do what
vc4_update_plane() did but through atomic.

v7: Place the drm_atomic_set_fb_for_plane() call after the new
    FB has been applied to the HW to avoid possible use-after-free
    issues
v6: add missing drm_atomic_set_fb_for_plane() in
    vc4_plane_atomic_async_update() (Boris Brezillon)
v5: add missing call to vc4_plane_atomic_check() (Eric Anholt)
v4: add drm_atomic_helper_async() commit (Eric Anholt)
v3: move size checks back to drivers (Ville Syrjälä)
v2: move fb setting to core and use new state (Eric Anholt)

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180330085445.31726-1-boris.brezillon@bootlin.com
drivers/gpu/drm/vc4/vc4_kms.c
drivers/gpu/drm/vc4/vc4_plane.c