panfrost: Add a panfrost_flush_batches_accessing_bo() helper
authorBoris Brezillon <boris.brezillon@collabora.com>
Sun, 15 Sep 2019 18:17:14 +0000 (20:17 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 3 Oct 2019 20:55:38 +0000 (16:55 -0400)
commit82399b58d3250d974cb6a74c3aa96f6f2fbafef0
treef0ce2a6036158f0793c1d446fe8e9c581b764419
parenta45984b244e6825f52327e34d63755e170048709
panfrost: Add a panfrost_flush_batches_accessing_bo() helper

This will allow us to only flush batches touching a specific resource,
which is particularly useful when the CPU needs to access a BO.

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