diff options
author | Jason Ekstrand <[email protected]> | 2015-01-15 07:58:07 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 13:21:27 -0800 |
commit | 8ed5305d28d9309d651dfec3fbf4349854694694 (patch) | |
tree | 0af9af419be48ecd3b00934cfd355c9285c1fd7d /src/glsl | |
parent | f0aec4ee1e364927f3003cabafa644035bcd803c (diff) |
hash_table: Rename insert_with_hash to insert_pre_hashed
We already have search_pre_hashed. This makes the APIs match better.
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/nir/nir_lower_locals_to_regs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/nir_lower_locals_to_regs.c b/src/glsl/nir/nir_lower_locals_to_regs.c index c08a15b3d16..b187541405a 100644 --- a/src/glsl/nir/nir_lower_locals_to_regs.c +++ b/src/glsl/nir/nir_lower_locals_to_regs.c @@ -118,7 +118,7 @@ get_reg_for_deref(nir_deref_var *deref, struct locals_to_regs_state *state) reg->num_components = glsl_get_vector_elements(tail->type); reg->num_array_elems = array_size > 1 ? array_size : 0; - _mesa_hash_table_insert_with_hash(state->regs_table, hash, deref, reg); + _mesa_hash_table_insert_pre_hashed(state->regs_table, hash, deref, reg); return reg; } |