diff options
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp index b24c38c351d..84b74ff2946 100644 --- a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp +++ b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp @@ -1065,11 +1065,15 @@ instruction_scheduler::schedule_instructions(backend_instruction *next_block_hea child->unblocked_time = MAX2(child->unblocked_time, time + chosen->child_latency[i]); + if (debug) { + printf("\tchild %d, %d parents: ", i, child->parent_count); + bv->dump_instruction(child->inst); + } + child->parent_count--; if (child->parent_count == 0) { if (debug) { - printf("now available: "); - bv->dump_instruction(child->inst); + printf("\t\tnow available\n"); } instructions.push_tail(child); } |