diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-01-11 11:50:53 -0800 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-01-14 10:49:28 -0800 |
commit | 9fdded0cc34b4bdb87923707c05b8ceffb2f174c (patch) | |
tree | b742e0cd4e33cd4766ed9f0b03c5c3eda2470556 /src/compiler/glsl/opt_function_inlining.cpp | |
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 <[email protected]>
Acked-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/compiler/glsl/opt_function_inlining.cpp')
-rw-r--r-- | src/compiler/glsl/opt_function_inlining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/opt_function_inlining.cpp b/src/compiler/glsl/opt_function_inlining.cpp index 52f57da936d..590bd707bee 100644 --- a/src/compiler/glsl/opt_function_inlining.cpp +++ b/src/compiler/glsl/opt_function_inlining.cpp @@ -152,7 +152,7 @@ ir_call::generate_inline(ir_instruction *next_ir) int i; struct hash_table *ht; - ht = _mesa_hash_table_create(NULL, _mesa_hash_pointer, _mesa_key_pointer_equal); + ht = _mesa_pointer_hash_table_create(NULL); num_parameters = this->callee->parameters.length(); parameters = new ir_variable *[num_parameters]; |