diff options
author | Boris Brezillon <[email protected]> | 2019-09-15 13:39:52 +0200 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2019-10-03 16:55:38 -0400 |
commit | 2dad9fde505c7d8e97f57f4a5a3f495f902f94f2 (patch) | |
tree | 06e94d35d65cd5be360f9105be5cd6dbc8e7169e /src/gallium/drivers/panfrost/pan_job.h | |
parent | 40a07bfbd746cca261194aba19a48589e0e32db6 (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.h | 3 |
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 */ |