panfrost: Use the per-batch fences to wait on the last submitted batch
authorBoris Brezillon <boris.brezillon@collabora.com>
Sun, 15 Sep 2019 08:57:26 +0000 (10:57 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 3 Oct 2019 20:55:38 +0000 (16:55 -0400)
commit819738e4af1ab0625e17c6fa555e5e23d737c5a0
tree4d018641770590cc2251ccfbfe47fbeae05ac83f
parent6936b7f31973c89cf1171de2ae65d57ce287f54f
panfrost: Use the per-batch fences to wait on the last submitted batch

We just replace the per-context out_sync object by a pointer to the
the fence of the last last submitted batch. Pipelining of batches will
come later.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_context.h
src/gallium/drivers/panfrost/pan_job.c
src/gallium/drivers/panfrost/pan_screen.c