summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_job.h
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-09-15 13:39:52 +0200
committerBoris Brezillon <[email protected]>2019-10-03 16:55:38 -0400
commit2dad9fde505c7d8e97f57f4a5a3f495f902f94f2 (patch)
tree06e94d35d65cd5be360f9105be5cd6dbc8e7169e /src/gallium/drivers/panfrost/pan_job.h
parent40a07bfbd746cca261194aba19a48589e0e32db6 (diff)
panfrost: Start tracking inter-batch dependencies
The idea is to track which BO are being accessed and the type of access to determine when a dependency exists. Thanks to that we can build a dependency graph that will allow us to flush batches in the correct order. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_job.h')
-rw-r--r--src/gallium/drivers/panfrost/pan_job.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_job.h b/src/gallium/drivers/panfrost/pan_job.h
index 88f1e4620fd..63813dff652 100644
--- a/src/gallium/drivers/panfrost/pan_job.h
+++ b/src/gallium/drivers/panfrost/pan_job.h
@@ -153,6 +153,9 @@ struct panfrost_batch {
/* Output sync object. Only valid when submitted is true. */
struct panfrost_batch_fence *out_sync;
+
+ /* Batch dependencies */
+ struct util_dynarray dependencies;
};
/* Functions for managing the above */