]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Flush the caches before the bin jobs, as well.
authorEric Anholt <eric@anholt.net>
Thu, 21 Dec 2017 22:17:22 +0000 (14:17 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 18 Jan 2018 20:17:03 +0000 (12:17 -0800)
commitfc1b1cb22ffd93957fae4f5c89cbe6b15d12a1b7
tree64d739595e416db2ea78f4a86ffe00d0c2776889
parent9d99f393187f155e98e8e2cecc6a78bb124100f0
drm/vc4: Flush the caches before the bin jobs, as well.

If the frame samples from a render target that was just written, its
cache flush during the binning step may have occurred before the
previous frame's RCL was completed.  Flush the texture caches again
before starting each RCL job to make sure that the sampling of the
previous RCL's output is correct.

Fixes flickering in the top left of 3DMMES Taiji.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 447903ee0e05 ("drm/vc4: improve throughput by pipelining binning and rendering jobs")
Link: https://patchwork.freedesktop.org/patch/msgid/20171221221722.23809-1-eric@anholt.net
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/gpu/drm/vc4/vc4_gem.c