mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 18:00:13 +01:00
i965: Use foreach_in_list_reverse_safe() macro.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
98d58e7320
commit
61b10b4eb7
1 changed files with 2 additions and 12 deletions
|
|
@ -1057,12 +1057,7 @@ fs_instruction_scheduler::calculate_deps()
|
||||||
last_accumulator_write = NULL;
|
last_accumulator_write = NULL;
|
||||||
last_fixed_grf_write = NULL;
|
last_fixed_grf_write = NULL;
|
||||||
|
|
||||||
exec_node *node;
|
foreach_in_list_reverse_safe(schedule_node, n, &instructions) {
|
||||||
exec_node *prev;
|
|
||||||
for (node = instructions.get_tail(), prev = node->prev;
|
|
||||||
!node->is_head_sentinel();
|
|
||||||
node = prev, prev = node->prev) {
|
|
||||||
schedule_node *n = (schedule_node *)node;
|
|
||||||
fs_inst *inst = (fs_inst *)n->inst;
|
fs_inst *inst = (fs_inst *)n->inst;
|
||||||
|
|
||||||
/* write-after-read deps. */
|
/* write-after-read deps. */
|
||||||
|
|
@ -1284,12 +1279,7 @@ vec4_instruction_scheduler::calculate_deps()
|
||||||
last_accumulator_write = NULL;
|
last_accumulator_write = NULL;
|
||||||
last_fixed_grf_write = NULL;
|
last_fixed_grf_write = NULL;
|
||||||
|
|
||||||
exec_node *node;
|
foreach_in_list_reverse_safe(schedule_node, n, &instructions) {
|
||||||
exec_node *prev;
|
|
||||||
for (node = instructions.get_tail(), prev = node->prev;
|
|
||||||
!node->is_head_sentinel();
|
|
||||||
node = prev, prev = node->prev) {
|
|
||||||
schedule_node *n = (schedule_node *)node;
|
|
||||||
vec4_instruction *inst = (vec4_instruction *)n->inst;
|
vec4_instruction *inst = (vec4_instruction *)n->inst;
|
||||||
|
|
||||||
/* write-after-read deps. */
|
/* write-after-read deps. */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue