mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
nir/nir_opt_copy_prop_vars: don't call memset when cloning
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>
This commit is contained in:
parent
d1a41d9c64
commit
cb58d75224
1 changed files with 2 additions and 2 deletions
|
|
@ -1365,8 +1365,8 @@ clone_copies(struct copy_prop_var_state *state, struct copies *clones,
|
|||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue