panfrost: Add a panfrost_flush_all_batches() helper
authorBoris Brezillon <boris.brezillon@collabora.com>
Sun, 15 Sep 2019 17:15:16 +0000 (19:15 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 3 Oct 2019 20:55:38 +0000 (16:55 -0400)
commita45984b244e6825f52327e34d63755e170048709
tree066be3226836f0be26dc8d56288066d16619a92d
parentb5d8f9bbbf3311505037a71758a9433feed6c81c
panfrost: Add a panfrost_flush_all_batches() helper

And use it in panfrost_flush() to flush all batches, and not only the
one currently bound to the context.

We also replace all internal calls to panfrost_flush() by
panfrost_flush_all_batches() ones.

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