OSDN Git Service

drm: rcar-du: Track dma-buf fences
authorEmre Ucan <eucan@de.adit-jv.com>
Mon, 30 Apr 2018 12:02:04 +0000 (14:02 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 5 May 2018 14:12:46 +0000 (17:12 +0300)
commitb06078de418d6f77c81aa74516f787663f51a262
tree2741f77d1863c0dc381a357a532ef34f4beba78d
parentf1e9a22ac3cff749077f40bf1a149aaaf587ae2d
drm: rcar-du: Track dma-buf fences

We have to check dma-buf reservation objects of our framebuffers before
we use them. Otherwise, another driver might be writing on the same
buffer which we are using. This would cause visible tearing effects
on display.

We can use existing atomic helper functions to solve this problem.

Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_vsp.c