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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19068>
This commit is contained in:
committed by
Marge Bot
parent
510a34fbf3
commit
17d8ff3a39
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user