Mesa (master): glsl: Add some comments to methods of ir_variable_refcount_visitor
Ian Romanick
idr at kemper.freedesktop.org
Wed Nov 9 21:22:20 UTC 2016
Module: Mesa
Branch: master
Commit: fbc1a4b7d26dced9a02cf41a9313d0d43eb014e3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fbc1a4b7d26dced9a02cf41a9313d0d43eb014e3
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Mon Nov 7 14:24:39 2016 -0800
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 <ian.d.romanick at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
src/compiler/glsl/ir_variable_refcount.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/compiler/glsl/ir_variable_refcount.h b/src/compiler/glsl/ir_variable_refcount.h
index 08a11c0..0a8eec7 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;
More information about the mesa-commit
mailing list