drm/sun4i: wait on implicit fence before display
authorQiang Yu <yuq825@gmail.com>
Thu, 22 Nov 2018 01:44:17 +0000 (09:44 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 Nov 2018 09:07:26 +0000 (10:07 +0100)
commit7b24eec754ba0f0f794ab09413dcde2585b4a84b
treee42c08baec1fb2ccd869633b75443253522dbb00
parentc6fdea6e1a1942bd1ab2abaa16c34f23a25226b9
drm/sun4i: wait on implicit fence before display

Render like lima will attach a fence to the framebuffer
dma_buf, display like sun4i should wait it finish before
show the framebuffer. Otherwise tearing will be observed.

Signed-off-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20181122014417.23285-1-yuq825@gmail.com
drivers/gpu/drm/sun4i/sun4i_layer.c
drivers/gpu/drm/sun4i/sun8i_ui_layer.c
drivers/gpu/drm/sun4i/sun8i_vi_layer.c