glsl: Use typed foreach_in_list instead of foreach_list.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
da9f0316e6
commit
4d78446d78
39 changed files with 184 additions and 291 deletions
|
|
@ -107,7 +107,7 @@ ir_call::generate_inline(ir_instruction *next_ir)
|
|||
ht = hash_table_ctor(0, hash_table_pointer_hash, hash_table_pointer_compare);
|
||||
|
||||
num_parameters = 0;
|
||||
foreach_list(n, &this->callee->parameters)
|
||||
foreach_in_list(ir_rvalue, param, &this->callee->parameters)
|
||||
num_parameters++;
|
||||
|
||||
parameters = new ir_variable *[num_parameters];
|
||||
|
|
@ -159,8 +159,7 @@ ir_call::generate_inline(ir_instruction *next_ir)
|
|||
exec_list new_instructions;
|
||||
|
||||
/* Generate the inlined body of the function to a new list */
|
||||
foreach_list(n, &callee->body) {
|
||||
ir_instruction *ir = (ir_instruction *) n;
|
||||
foreach_in_list(ir_instruction, ir, &callee->body) {
|
||||
ir_instruction *new_ir = ir->clone(ctx, ht);
|
||||
|
||||
new_instructions.push_tail(new_ir);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue