panfrost: Prepare panfrost_fence for batch pipelining
authorBoris Brezillon <boris.brezillon@collabora.com>
Sun, 15 Sep 2019 16:23:10 +0000 (18:23 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 3 Oct 2019 20:55:38 +0000 (16:55 -0400)
commitb5d8f9bbbf3311505037a71758a9433feed6c81c
tree9be05f3d5fd13dd7ae2b4783928edcd9771e3113
parent2dad9fde505c7d8e97f57f4a5a3f495f902f94f2
panfrost: Prepare panfrost_fence for batch pipelining

The panfrost_fence logic currently waits on the last submitted batch,
but the batch serialization that was enforced in
panfrost_batch_submit() is about to go away, allowing for several
batches to be pipelined, and the last submitted one is not necessarily
the one that will finish last.

We need to make sure the fence logic waits on all flushed batches, not
only the last one.

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
src/gallium/drivers/panfrost/pan_screen.h