mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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:
parent
4aee4f0975
commit
27074cb48b
1 changed files with 6 additions and 14 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue