glsl: Update hash table comments in constant propagation
Signed-off-by: Rhys Kidd <rhyskidd@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:

committed by
Kenneth Graunke

parent
afa8707ba9
commit
703c1e69d8
@@ -122,7 +122,7 @@ public:
|
|||||||
exec_list *acp;
|
exec_list *acp;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of kill_entry: The masks of variables whose values were
|
* Hash table of kill_entry: The masks of variables whose values were
|
||||||
* killed in this block.
|
* killed in this block.
|
||||||
*/
|
*/
|
||||||
hash_table *kills;
|
hash_table *kills;
|
||||||
@@ -454,7 +454,7 @@ ir_constant_propagation_visitor::kill(ir_variable *var, unsigned write_mask)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add this writemask of the variable to the list of killed
|
/* Add this writemask of the variable to the hash table of killed
|
||||||
* variables in this block.
|
* variables in this block.
|
||||||
*/
|
*/
|
||||||
hash_entry *kill_hash_entry = _mesa_hash_table_search(this->kills, var);
|
hash_entry *kill_hash_entry = _mesa_hash_table_search(this->kills, var);
|
||||||
@@ -463,7 +463,7 @@ ir_constant_propagation_visitor::kill(ir_variable *var, unsigned write_mask)
|
|||||||
entry->write_mask |= write_mask;
|
entry->write_mask |= write_mask;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* Not already in the list. Make new entry. */
|
/* Not already in the hash table. Make new entry. */
|
||||||
_mesa_hash_table_insert(this->kills, var,
|
_mesa_hash_table_insert(this->kills, var,
|
||||||
new(this->mem_ctx) kill_entry(var, write_mask));
|
new(this->mem_ctx) kill_entry(var, write_mask));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user