aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_variable_refcount.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-10-17 15:20:09 -0700
committerJordan Justen <[email protected]>2012-12-07 14:46:18 -0800
commit1ddc021b2a992a214a7668672d35a55c160f6a90 (patch)
tree19b3e4edcc5be22e010ceba05ced0bf5fdf1d779 /src/glsl/ir_variable_refcount.h
parent59284bc44a3f30ec18192098a4e1e43b6c6d392a (diff)
mesa: Use the new hash table for the variable refcount visitor.
Reviewed-by: Jordan Justen <[email protected]> [[email protected]: open_hash_table => hash_table] Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ir_variable_refcount.h')
-rw-r--r--src/glsl/ir_variable_refcount.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/glsl/ir_variable_refcount.h b/src/glsl/ir_variable_refcount.h
index 51a4945a135..c15e8110d04 100644
--- a/src/glsl/ir_variable_refcount.h
+++ b/src/glsl/ir_variable_refcount.h
@@ -33,7 +33,7 @@
#include "ir_visitor.h"
#include "glsl_types.h"
-class ir_variable_refcount_entry : public exec_node
+class ir_variable_refcount_entry
{
public:
ir_variable_refcount_entry(ir_variable *var);
@@ -52,16 +52,8 @@ public:
class ir_variable_refcount_visitor : public ir_hierarchical_visitor {
public:
- ir_variable_refcount_visitor(void)
- {
- this->mem_ctx = ralloc_context(NULL);
- this->variable_list.make_empty();
- }
-
- ~ir_variable_refcount_visitor(void)
- {
- ralloc_free(this->mem_ctx);
- }
+ ir_variable_refcount_visitor(void);
+ ~ir_variable_refcount_visitor(void);
virtual ir_visitor_status visit(ir_variable *);
virtual ir_visitor_status visit(ir_dereference_variable *);
@@ -71,8 +63,7 @@ public:
ir_variable_refcount_entry *get_variable_entry(ir_variable *var);
- /* List of ir_variable_refcount_entry */
- exec_list variable_list;
+ struct hash_table *ht;
void *mem_ctx;
};