From 17d8ff3a398027d23b7caa6c174ca654c9875284 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 13 Oct 2022 21:01:23 +0200 Subject: [PATCH] zink: fixup dynarray-type This doesn't make a functional difference, because the size here ends up being the same; the size of a pointer. But let's use the right type for consistency. Part-of: --- src/gallium/drivers/zink/zink_descriptors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_descriptors.c b/src/gallium/drivers/zink/zink_descriptors.c index 5efd788509a..6bbdd56de80 100644 --- a/src/gallium/drivers/zink/zink_descriptors.c +++ b/src/gallium/drivers/zink/zink_descriptors.c @@ -631,7 +631,7 @@ set_pool(struct zink_batch_state *bs, struct zink_program *pg, struct zink_descr assert(mpool); const struct zink_descriptor_pool_key *pool_key = pg->dd.pool_key[type]; size_t size = bs->dd.pools[type].capacity; - if (!util_dynarray_resize(&bs->dd.pools[type], struct zink_descriptor_pool*, pool_key->id + 1)) + if (!util_dynarray_resize(&bs->dd.pools[type], struct zink_descriptor_pool_multi*, pool_key->id + 1)) return false; if (size != bs->dd.pools[type].capacity) { uint8_t *data = bs->dd.pools[type].data;