glsl2: Track the number of ir_loop_jump instructions that are in a loop

This commit is contained in:
Ian Romanick
2010-08-27 15:41:20 -07:00
parent 351525d534
commit 3bcfafcf03
3 changed files with 27 additions and 0 deletions

View File

@@ -104,8 +104,14 @@ public:
*/
hash_table *var_hash;
/**
* Number of ir_loop_jump instructions that operate on this loop
*/
unsigned num_loop_jumps;
loop_variable_state()
{
this->num_loop_jumps = 0;
this->var_hash = hash_table_ctor(0, hash_table_pointer_hash,
hash_table_pointer_compare);
}