diff options
author | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-04-13 14:10:46 +0900 |
---|---|---|
committer | José Fonseca <jrfonseca@tungstengraphics.com> | 2008-04-13 15:10:17 +0900 |
commit | 21c302b0ec39480a7eaab7827cce5b609d196606 (patch) | |
tree | 96f89d54fa264ab94babe042f5041b8e008de446 /src/gallium/auxiliary/pipebuffer/pb_bufmgr.h | |
parent | cd5931240688cb8bd12834e3ba23f858f26dbf8c (diff) | |
download | external_mesa3d-21c302b0ec39480a7eaab7827cce5b609d196606.zip external_mesa3d-21c302b0ec39480a7eaab7827cce5b609d196606.tar.gz external_mesa3d-21c302b0ec39480a7eaab7827cce5b609d196606.tar.bz2 |
gallium: Initial port of Thomas slab suballocator to pipebuffer.
Not tested yet -- just compiles.
This includes only the slab algorithm. Fencing is already
implemented in pb_bufmgr_fence and time-based caching will be commited in a
separate module shortly.
Diffstat (limited to 'src/gallium/auxiliary/pipebuffer/pb_bufmgr.h')
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_bufmgr.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h b/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h index 0cf8e92..a2377f7 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h +++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr.h @@ -114,6 +114,15 @@ mm_bufmgr_create_from_buffer(struct pb_buffer *buffer, size_t size, size_t align2); +struct pb_manager * +pb_slab_manager_create(struct pb_manager *provider, + const struct pb_desc *desc, + size_t smallestSize, + size_t numSizes, + size_t desiredNumBuffers, + size_t maxSlabSize, + size_t pageAlignment); + /** * Fenced buffer manager. * |