summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/opt_function_inlining.cpp
diff options
context:
space:
mode:
authorThomas Helland <thomashelland90@gmail.com>2016-08-16 22:10:19 +0200
committerTimothy Arceri <timothy.arceri@collabora.com>2016-09-12 10:48:35 +1000
commit5b5d4ea4a098c94442666402dccfc0a35333dced (patch)
tree09df9042db25fbbce1eeca7e86898379768f6c57 /src/compiler/glsl/opt_function_inlining.cpp
parenteef2be6822c3409f8418c77f2278ea84492282f2 (diff)
downloadexternal_mesa3d-5b5d4ea4a098c94442666402dccfc0a35333dced.zip
external_mesa3d-5b5d4ea4a098c94442666402dccfc0a35333dced.tar.gz
external_mesa3d-5b5d4ea4a098c94442666402dccfc0a35333dced.tar.bz2
glsl: Convert function inlining to the util hash table
Signed-off-by: Thomas Helland <thomashelland90@gmail.com> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Diffstat (limited to 'src/compiler/glsl/opt_function_inlining.cpp')
-rw-r--r--src/compiler/glsl/opt_function_inlining.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/glsl/opt_function_inlining.cpp b/src/compiler/glsl/opt_function_inlining.cpp
index 19f5fae..83534bf 100644
--- a/src/compiler/glsl/opt_function_inlining.cpp
+++ b/src/compiler/glsl/opt_function_inlining.cpp
@@ -32,7 +32,7 @@
#include "ir_function_inlining.h"
#include "ir_expression_flattening.h"
#include "compiler/glsl_types.h"
-#include "program/hash_table.h"
+#include "util/hash_table.h"
static void
do_variable_replacement(exec_list *instructions,
@@ -104,7 +104,7 @@ ir_call::generate_inline(ir_instruction *next_ir)
int i;
struct hash_table *ht;
- ht = hash_table_ctor(0, hash_table_pointer_hash, hash_table_pointer_compare);
+ ht = _mesa_hash_table_create(NULL, _mesa_hash_pointer, _mesa_key_pointer_equal);
num_parameters = this->callee->parameters.length();
parameters = new ir_variable *[num_parameters];
@@ -207,7 +207,7 @@ ir_call::generate_inline(ir_instruction *next_ir)
delete [] parameters;
- hash_table_dtor(ht);
+ _mesa_hash_table_destroy(ht, NULL);
}