anv/allocator: Make the block pool double-ended
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 16 Sep 2015 00:46:09 +0000 (17:46 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 18 Sep 2015 00:44:20 +0000 (17:44 -0700)
commit5f57ff7e18c1c545aafcdc267bc22594cef81d3c
tree6536d4e30554c531e6c1d23a682c687dd4abdbc3
parent15624fcf55bff9d16f3eaa461e4a3010bbe0e4ba
anv/allocator: Make the block pool double-ended

This allows us to allocate from either side of the block pool in a
consistent way.  If you use the previous block_pool_alloc function, you
will get offsets from the start of the pool as normal.  If you use the new
block_pool_alloc_back function, you will get a negative index that
corresponds to something in the "back" of the pool.
src/vulkan/anv_allocator.c
src/vulkan/anv_private.h
src/vulkan/tests/block_pool_no_free.c