diff options
author | Boris Brezillon <[email protected]> | 2019-09-15 18:23:10 +0200 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2019-10-03 16:55:38 -0400 |
commit | b5d8f9bbbf3311505037a71758a9433feed6c81c (patch) | |
tree | 9be05f3d5fd13dd7ae2b4783928edcd9771e3113 /src/gallium/drivers/panfrost/pan_context.h | |
parent | 2dad9fde505c7d8e97f57f4a5a3f495f902f94f2 (diff) |
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 <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_context.h')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.h b/src/gallium/drivers/panfrost/pan_context.h index 3b09952345c..d50ed57d5d8 100644 --- a/src/gallium/drivers/panfrost/pan_context.h +++ b/src/gallium/drivers/panfrost/pan_context.h @@ -94,7 +94,7 @@ struct panfrost_query { struct panfrost_fence { struct pipe_reference reference; - int fd; + struct util_dynarray syncfds; }; struct panfrost_streamout { @@ -193,9 +193,6 @@ struct panfrost_context { /* True for t6XX, false for t8xx. */ bool is_t6xx; - - /* The out sync fence of the last submitted batch. */ - struct panfrost_batch_fence *last_out_sync; }; /* Corresponds to the CSO */ |