diff options
author | Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> | 2019-01-11 11:50:53 -0800 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> | 2019-01-14 10:49:28 -0800 |
commit | 9fdded0cc34b4bdb87923707c05b8ceffb2f174c (patch) | |
tree | b742e0cd4e33cd4766ed9f0b03c5c3eda2470556 /src/compiler/nir/nir_remove_dead_variables.c | |
parent | ee23e8b17c77fa94320168427fb8a10a84b50e94 (diff) |
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>
Diffstat (limited to 'src/compiler/nir/nir_remove_dead_variables.c')
-rw-r--r-- | src/compiler/nir/nir_remove_dead_variables.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_remove_dead_variables.c b/src/compiler/nir/nir_remove_dead_variables.c index a8a347b6a67..5c345bdb854 100644 --- a/src/compiler/nir/nir_remove_dead_variables.c +++ b/src/compiler/nir/nir_remove_dead_variables.c @@ -164,8 +164,7 @@ bool nir_remove_dead_variables(nir_shader *shader, nir_variable_mode modes) { bool progress = false; - struct set *live = - _mesa_set_create(NULL, _mesa_hash_pointer, _mesa_key_pointer_equal); + struct set *live = _mesa_pointer_set_create(NULL); add_var_use_shader(shader, live, modes); |