summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ir_variable_refcount.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2016-11-07 14:24:39 -0800
committerIan Romanick <[email protected]>2016-11-09 12:47:51 -0800
commitfbc1a4b7d26dced9a02cf41a9313d0d43eb014e3 (patch)
treeb6d505e965f61a73218ed80c4a7d93e9dd237989 /src/compiler/glsl/ir_variable_refcount.h
parent14926330703bb5ea6a84c845e192021f057f9401 (diff)
glsl: Add some comments to methods of ir_variable_refcount_visitor
It was not obvious from the just the .h file what the hash table contained. It was also not obvious that get_variable_entry would create a new entry in the hash table. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_variable_refcount.h')
-rw-r--r--src/compiler/glsl/ir_variable_refcount.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir_variable_refcount.h b/src/compiler/glsl/ir_variable_refcount.h
index 08a11c01495..0a8eec7a269 100644
--- a/src/compiler/glsl/ir_variable_refcount.h
+++ b/src/compiler/glsl/ir_variable_refcount.h
@@ -72,8 +72,14 @@ public:
virtual ir_visitor_status visit_enter(ir_function_signature *);
virtual ir_visitor_status visit_leave(ir_assignment *);
+ /**
+ * Find variable in the hash table, and insert it if not present
+ */
ir_variable_refcount_entry *get_variable_entry(ir_variable *var);
+ /**
+ * Hash table mapping ir_variable to ir_variable_refcount_entry.
+ */
struct hash_table *ht;
void *mem_ctx;