drm/rockchip: Unreference framebuffers from flip work
authorTomasz Figa <tfiga@chromium.org>
Wed, 14 Sep 2016 12:54:57 +0000 (21:54 +0900)
committerSean Paul <seanpaul@chromium.org>
Wed, 21 Sep 2016 13:55:51 +0000 (06:55 -0700)
commit47a7eb4597775ecdc29d2630d875a991f0449bf3
tree175d5c4fd1d92f6ecc9881e8d9ddad4f66fbf7b7
parent7caecdbec1128a934ee628f399110dff8a50c9a1
drm/rockchip: Unreference framebuffers from flip work

Currently the driver waits for vblank and then unreferences old
framebuffers from atomic commit code path. This is however breaking the
legacy cursor API, which requires the updates to be fully asynchronous.
Instead of just adding a special case for cursor, we can have actually
smaller amount of code to unreference any changed framebuffer from a
flip work.

Signed-off-by: Tomasz Figa <tfiga@chromium.org>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c