anv/allocator: Drop uncessary function

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37669>
This commit is contained in:
José Roberto de Souza 2025-10-01 10:37:54 -07:00 committed by Marge Bot
parent 4aee4f0975
commit 27074cb48b

View file

@ -595,13 +595,13 @@ anv_block_pool_grow(struct anv_block_pool *pool, struct anv_block_state *state,
return pool->size;
}
static VkResult
anv_block_pool_alloc_new(struct anv_block_pool *pool,
struct anv_block_state *pool_state,
uint32_t block_size,
int64_t *offset,
uint32_t *padding)
VkResult
anv_block_pool_alloc(struct anv_block_pool *pool,
uint32_t block_size,
int64_t *offset,
uint32_t *padding)
{
struct anv_block_state *pool_state = &pool->state;
struct anv_block_state state, old, new;
/* Most allocations won't generate any padding */
@ -658,14 +658,6 @@ anv_block_pool_alloc_new(struct anv_block_pool *pool,
}
}
VkResult
anv_block_pool_alloc(struct anv_block_pool *pool,
uint32_t block_size,
int64_t *offset, uint32_t *padding)
{
return anv_block_pool_alloc_new(pool, &pool->state, block_size, offset, padding);
}
VkResult
anv_state_pool_init(struct anv_state_pool *pool,
struct anv_device *device,