summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_allocate.h
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-09-05 21:41:32 +0200
committerBoris Brezillon <[email protected]>2019-09-08 16:24:19 +0200
commit14bfb0cb679513c3588a23f645a0a09637c15e65 (patch)
tree164e03c5a17de565621ba0ddb3235781624391c4 /src/gallium/drivers/panfrost/pan_allocate.h
parent2c90045cf27834e80493489668816e3639fc4d83 (diff)
panfrost: Get rid of the now unused SLAB allocator
The last users have been converted to use plain BOs. Let's get rid of this abstraction. We can always consider adding it back if we need it at some point. 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.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/gallium/drivers/panfrost/pan_allocate.h b/src/gallium/drivers/panfrost/pan_allocate.h
index cf9499154c8..c0aff62df4a 100644
--- a/src/gallium/drivers/panfrost/pan_allocate.h
+++ b/src/gallium/drivers/panfrost/pan_allocate.h
@@ -63,23 +63,10 @@ struct panfrost_bo {
uint32_t flags;
};
-struct panfrost_memory {
- /* Backing for the slab in memory */
- struct panfrost_bo *bo;
- int stack_bottom;
-};
-
struct panfrost_transfer
panfrost_allocate_transient(struct panfrost_context *ctx, size_t sz);
mali_ptr
panfrost_upload_transient(struct panfrost_context *ctx, const void *data, size_t sz);
-static inline mali_ptr
-panfrost_reserve(struct panfrost_memory *mem, size_t sz)
-{
- mem->stack_bottom += sz;
- return mem->bo->gpu + (mem->stack_bottom - sz);
-}
-
#endif /* __PAN_ALLOCATE_H__ */