This makes the pass significantly faster cutting execution time
by around 30% in the cts test
dEQP-GLES31.functional.ubo.random.all_per_block_buffers.20
This 30% improvement is in addition to all the improvements from
the proceeding patches.
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20381>
{
hash_table_foreach(&copies->ht, entry) {
struct copies_dynarray *cloned_copies = get_copies_dynarray(state);
- util_dynarray_clone(&cloned_copies->arr, state->mem_ctx,
- &((struct copies_dynarray *) entry->data)->arr);
+ util_dynarray_append_dynarray(&cloned_copies->arr,
+ &((struct copies_dynarray *) entry->data)->arr);
_mesa_hash_table_insert(&clones->ht, entry->key, cloned_copies);
}