anv/allocator: Convert the state stream to pull from a state pool
Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com>
This commit is contained in:
@@ -345,7 +345,7 @@ VkResult anv_CreateDescriptorPool(
|
||||
pool->free_list = EMPTY;
|
||||
|
||||
anv_state_stream_init(&pool->surface_state_stream,
|
||||
&device->surface_state_block_pool);
|
||||
&device->surface_state_pool, 4096);
|
||||
pool->surface_state_free_list = NULL;
|
||||
|
||||
*pDescriptorPool = anv_descriptor_pool_to_handle(pool);
|
||||
@@ -380,7 +380,7 @@ VkResult anv_ResetDescriptorPool(
|
||||
pool->free_list = EMPTY;
|
||||
anv_state_stream_finish(&pool->surface_state_stream);
|
||||
anv_state_stream_init(&pool->surface_state_stream,
|
||||
&device->surface_state_block_pool);
|
||||
&device->surface_state_pool, 4096);
|
||||
pool->surface_state_free_list = NULL;
|
||||
|
||||
return VK_SUCCESS;
|
||||
|
Reference in New Issue
Block a user