drm: Don't prepare or cleanup unchanging frame buffers [v3]
authorKeith Packard <keithp@keithp.com>
Sat, 4 Jun 2016 08:16:22 +0000 (01:16 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 8 Aug 2016 08:59:56 +0000 (10:59 +0200)
commit2317c8c5a82f3a4a09fce2a5488a13ea5d54d980
treef1f3cf50c3ce94ad80e9b8494d5b7e25fa8682a9
parentdb1a577507846de87276a52e4900c3a665b52e3a
drm: Don't prepare or cleanup unchanging frame buffers [v3]

When reconfiguring a plane position (as in moving the cursor), the
frame buffer for the cursor isn't changing, so don't call the prepare
or cleanup driver functions.

This avoids making cursor position updates block on all pending rendering.

v3: use drm_atomic_helper_framebuffer_changed in both prepare and
    cleanup phases instead of keeping state in the plane.

cc: dri-devel@lists.freedesktop.org
cc: David Airlie <airlied@linux.ie>
cc: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Keith Packard <keithp@keithp.com>
[danvet: Rebase onto 4.8]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c