mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
zink: move descriptor function up in file
no functional changes Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19053>
This commit is contained in:
parent
f8f4648cac
commit
7b88bc5482
1 changed files with 12 additions and 9 deletions
|
|
@ -591,6 +591,18 @@ multi_pool_destroy(struct zink_screen *screen, struct zink_descriptor_pool_multi
|
|||
ralloc_free(mpool);
|
||||
}
|
||||
|
||||
static bool
|
||||
clear_multi_pool_overflow(struct zink_screen *screen, struct util_dynarray *overflowed_pools)
|
||||
{
|
||||
bool found = false;
|
||||
while (util_dynarray_num_elements(overflowed_pools, struct zink_descriptor_pool*)) {
|
||||
struct zink_descriptor_pool *pool = util_dynarray_pop(overflowed_pools, struct zink_descriptor_pool*);
|
||||
pool_destroy(screen, pool);
|
||||
found = true;
|
||||
}
|
||||
return found;
|
||||
}
|
||||
|
||||
static VkDescriptorPool
|
||||
create_pool(struct zink_screen *screen, unsigned num_type_sizes, const VkDescriptorPoolSize *sizes, unsigned flags)
|
||||
{
|
||||
|
|
@ -913,15 +925,6 @@ zink_context_invalidate_descriptor_state(struct zink_context *ctx, gl_shader_sta
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
clear_multi_pool_overflow(struct zink_screen *screen, struct util_dynarray *overflowed_pools)
|
||||
{
|
||||
while (util_dynarray_num_elements(overflowed_pools, struct zink_descriptor_pool*)) {
|
||||
struct zink_descriptor_pool *pool = util_dynarray_pop(overflowed_pools, struct zink_descriptor_pool*);
|
||||
pool_destroy(screen, pool);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
deinit_multi_pool_overflow(struct zink_screen *screen, struct zink_descriptor_pool_multi *mpool)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue