src/compiler: use new hash table and set creation helpers
Replace calls to create hash tables and sets that use _mesa_hash_pointer/_mesa_key_pointer_equal with the helpers _mesa_pointer_hash_table_create() and _mesa_pointer_set_create(). Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Acked-by: Eric Engestrom <eric@engestrom.ch>
This commit is contained in:
@@ -62,8 +62,7 @@ init_clone_state(clone_state *state, struct hash_table *remap_table,
|
||||
if (remap_table) {
|
||||
state->remap_table = remap_table;
|
||||
} else {
|
||||
state->remap_table = _mesa_hash_table_create(NULL, _mesa_hash_pointer,
|
||||
_mesa_key_pointer_equal);
|
||||
state->remap_table = _mesa_pointer_hash_table_create(NULL);
|
||||
}
|
||||
|
||||
list_inithead(&state->phi_srcs);
|
||||
|
||||
Reference in New Issue
Block a user