diff options
author | Thomas Helland <[email protected]> | 2016-08-16 22:10:34 +0200 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2016-09-12 10:48:35 +1000 |
commit | 16fb318d0c42059a9a7a47d00a3cb04d843652c7 (patch) | |
tree | bdc3ee80b06b84818daed0ef67f6482628d23e70 /src/compiler/glsl/loop_analysis.h | |
parent | ec453979db90e30243851b2dc8024e3d9aeceb62 (diff) |
glsl: Convert loop analysis to the util hash table
Signed-off-by: Thomas Helland <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl/loop_analysis.h')
-rw-r--r-- | src/compiler/glsl/loop_analysis.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/glsl/loop_analysis.h b/src/compiler/glsl/loop_analysis.h index 3b1971d7edc..727a91c2723 100644 --- a/src/compiler/glsl/loop_analysis.h +++ b/src/compiler/glsl/loop_analysis.h @@ -27,7 +27,7 @@ #define LOOP_ANALYSIS_H #include "ir.h" -#include "program/hash_table.h" +#include "util/hash_table.h" /** * Analyze and classify all variables used in all loops in the instruction list @@ -130,14 +130,14 @@ public: { this->num_loop_jumps = 0; this->contains_calls = false; - this->var_hash = hash_table_ctor(0, hash_table_pointer_hash, - hash_table_pointer_compare); + this->var_hash = _mesa_hash_table_create(NULL, _mesa_hash_pointer, + _mesa_key_pointer_equal); this->limiting_terminator = NULL; } ~loop_variable_state() { - hash_table_dtor(this->var_hash); + _mesa_hash_table_destroy(this->var_hash, NULL); } DECLARE_RALLOC_CXX_OPERATORS(loop_variable_state) |