diff options
author | Boris Brezillon <[email protected]> | 2019-09-15 10:57:26 +0200 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2019-10-03 16:55:38 -0400 |
commit | 819738e4af1ab0625e17c6fa555e5e23d737c5a0 (patch) | |
tree | 4d018641770590cc2251ccfbfe47fbeae05ac83f /src/gallium/drivers/panfrost/pan_context.h | |
parent | 6936b7f31973c89cf1171de2ae65d57ce287f54f (diff) |
panfrost: Use the per-batch fences to wait on the last submitted batch
We just replace the per-context out_sync object by a pointer to the
the fence of the last last submitted batch. Pipelining of batches will
come later.
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.h b/src/gallium/drivers/panfrost/pan_context.h index c145d589757..ce3e0c899a4 100644 --- a/src/gallium/drivers/panfrost/pan_context.h +++ b/src/gallium/drivers/panfrost/pan_context.h @@ -191,7 +191,8 @@ struct panfrost_context { /* True for t6XX, false for t8xx. */ bool is_t6xx; - uint32_t out_sync; + /* The out sync fence of the last submitted batch. */ + struct panfrost_batch_fence *last_out_sync; }; /* Corresponds to the CSO */ |