glsl: Use typed foreach_in_list instead of foreach_list.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
@@ -56,8 +56,7 @@ void call_for_basic_blocks(exec_list *instructions,
|
||||
ir_instruction *leader = NULL;
|
||||
ir_instruction *last = NULL;
|
||||
|
||||
foreach_list(n, instructions) {
|
||||
ir_instruction *ir = (ir_instruction *) n;
|
||||
foreach_in_list(ir_instruction, ir, instructions) {
|
||||
ir_if *ir_if;
|
||||
ir_loop *ir_loop;
|
||||
ir_function *ir_function;
|
||||
@@ -88,9 +87,7 @@ void call_for_basic_blocks(exec_list *instructions,
|
||||
* and the body of main(). Perhaps those instructions ought
|
||||
* to live inside of main().
|
||||
*/
|
||||
foreach_list(func_node, &ir_function->signatures) {
|
||||
ir_function_signature *ir_sig = (ir_function_signature *) func_node;
|
||||
|
||||
foreach_in_list(ir_function_signature, ir_sig, &ir_function->signatures) {
|
||||
call_for_basic_blocks(&ir_sig->body, callback, data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user