From: Jason Ekstrand Date: Fri, 31 Jul 2015 17:30:57 +0000 (-0700) Subject: vk/allocator: Add an anv_state_pool_finish function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1920ef9675b5ebdab2050b1f37c6cfdd6d9c6f69;p=mesa.git 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. --- diff --git a/src/vulkan/anv_allocator.c b/src/vulkan/anv_allocator.c index d85b919154d..463660f12c0 100644 --- a/src/vulkan/anv_allocator.c +++ b/src/vulkan/anv_allocator.c @@ -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) { diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index f633108895e..0c05c33f626 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -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); diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 12f826c1ab1..563d7a573bd 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -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);