summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_allocate.h
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-09-01 10:15:23 +0200
committerBoris Brezillon <[email protected]>2019-09-13 16:25:06 +0200
commit07a68835a153c808a530a277396bd9f212e2bc06 (patch)
tree70aa456a41d5f9eeabc9be9e30a71c1f5be14236 /src/gallium/drivers/panfrost/pan_allocate.h
parente46d95d51bc11301b603f1beb9b1341b3623a46b (diff)
panfrost: Pass a batch to panfrost_{allocate,upload}_transient()
We need that if we want to upload transient buffers to a batch that's not currently bound to the context, which in turn will be needed if we want to relax the batch serialization we have right now (only flush batches when we need to: on a flush request, or when one batch depends on the result of other batches). Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_allocate.h')
-rw-r--r--src/gallium/drivers/panfrost/pan_allocate.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/panfrost/pan_allocate.h b/src/gallium/drivers/panfrost/pan_allocate.h
index c0aff62df4a..a80eadaffce 100644
--- a/src/gallium/drivers/panfrost/pan_allocate.h
+++ b/src/gallium/drivers/panfrost/pan_allocate.h
@@ -33,7 +33,7 @@
#include "util/list.h"
-struct panfrost_context;
+struct panfrost_batch;
/* Represents a fat pointer for GPU-mapped memory, returned from the transient
* allocator and not used for much else */
@@ -64,9 +64,10 @@ struct panfrost_bo {
};
struct panfrost_transfer
-panfrost_allocate_transient(struct panfrost_context *ctx, size_t sz);
+panfrost_allocate_transient(struct panfrost_batch *batch, size_t sz);
mali_ptr
-panfrost_upload_transient(struct panfrost_context *ctx, const void *data, size_t sz);
+panfrost_upload_transient(struct panfrost_batch *batch, const void *data,
+ size_t sz);
#endif /* __PAN_ALLOCATE_H__ */