mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
zink: pass screen to descriptor_util_pool_key_get()
Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21169>
This commit is contained in:
parent
be8b7980e6
commit
115e0446dc
1 changed files with 2 additions and 3 deletions
|
|
@ -179,11 +179,10 @@ equals_descriptor_pool_key(const void *a, const void *b)
|
|||
}
|
||||
|
||||
static struct zink_descriptor_pool_key *
|
||||
descriptor_util_pool_key_get(struct zink_context *ctx, enum zink_descriptor_type type,
|
||||
descriptor_util_pool_key_get(struct zink_screen *screen, enum zink_descriptor_type type,
|
||||
struct zink_descriptor_layout_key *layout_key,
|
||||
VkDescriptorPoolSize *sizes, unsigned num_type_sizes)
|
||||
{
|
||||
struct zink_screen *screen = zink_screen(ctx->base.screen);
|
||||
uint32_t hash = 0;
|
||||
struct zink_descriptor_pool_key key;
|
||||
key.num_type_sizes = num_type_sizes;
|
||||
|
|
@ -593,7 +592,7 @@ zink_descriptor_program_init(struct zink_context *ctx, struct zink_program *pg)
|
|||
if (!sz->descriptorCount)
|
||||
sz++;
|
||||
}
|
||||
pg->dd.pool_key[desc_type] = descriptor_util_pool_key_get(ctx, desc_type, key, sz, num_type_sizes[desc_type]);
|
||||
pg->dd.pool_key[desc_type] = descriptor_util_pool_key_get(screen, desc_type, key, sz, num_type_sizes[desc_type]);
|
||||
pg->dd.pool_key[desc_type]->use_count++;
|
||||
pg->dsl[pg->num_dsl] = pg->dd.layouts[pg->num_dsl]->layout;
|
||||
if (zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_DB)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue