vk/allocator: Add an anv_state_pool_finish function

Currently this is a no-op but it gives us a place to put finalization
things in the future.
This commit is contained in:
Jason Ekstrand 2015-07-31 10:30:57 -07:00
parent 930598ad56
commit 1920ef9675
3 changed files with 8 additions and 0 deletions

View file

@ -456,6 +456,11 @@ anv_state_pool_init(struct anv_state_pool *pool,
}
}
void
anv_state_pool_finish(struct anv_state_pool *pool)
{
}
struct anv_state
anv_state_pool_alloc(struct anv_state_pool *pool, size_t size, size_t align)
{

View file

@ -652,8 +652,10 @@ VkResult anv_DestroyDevice(
#endif
anv_bo_pool_finish(&device->batch_bo_pool);
anv_state_pool_finish(&device->dynamic_state_pool);
anv_block_pool_finish(&device->dynamic_state_block_pool);
anv_block_pool_finish(&device->instruction_block_pool);
anv_state_pool_finish(&device->surface_state_pool);
anv_block_pool_finish(&device->surface_state_block_pool);
anv_block_pool_finish(&device->scratch_block_pool);

View file

@ -299,6 +299,7 @@ uint32_t anv_block_pool_alloc(struct anv_block_pool *pool);
void anv_block_pool_free(struct anv_block_pool *pool, uint32_t offset);
void anv_state_pool_init(struct anv_state_pool *pool,
struct anv_block_pool *block_pool);
void anv_state_pool_finish(struct anv_state_pool *pool);
struct anv_state anv_state_pool_alloc(struct anv_state_pool *pool,
size_t state_size, size_t alignment);
void anv_state_pool_free(struct anv_state_pool *pool, struct anv_state state);