mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 08:10:09 +01:00
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:
parent
930598ad56
commit
1920ef9675
3 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue