]> asedeno.scripts.mit.edu Git - linux.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)
commitf61145f1a4bd7966aa0b15c5cd3950835b284f55
tree64d739595e416db2ea78f4a86ffe00d0c2776889
parent75f195f46f27a2524b249b95e6f241cd13c7e549
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: ca26d28bbaa3 ("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