Skip to content
Commit fcc60b41 authored by Keith Packard's avatar Keith Packard Committed by Daniel Vetter
Browse files

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: default avatarKeith Packard <keithp@keithp.com>
[danvet: Rebase onto 4.8]
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent fa538645
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment