mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 01:30:08 +01:00
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@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
1492633070
commit
fbc1a4b7d2
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue