aco: add missing add_to_hazard_query

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4905>
This commit is contained in:
Rhys Perry
2020-07-24 15:49:43 +01:00
committed by Marge Bot
parent 1882b1e5a7
commit 1bbb64f300

View File

@@ -701,6 +701,7 @@ void schedule_VMEM(sched_ctx& ctx, Block* block,
continue;
}
Instruction *candidate_ptr = candidate.get();
MoveResult res = ctx.mv.downwards_move(part_of_clause);
if (res == move_fail_ssa || res == move_fail_rar) {
add_to_hazard_query(&indep_hq, candidate.get());
@@ -710,6 +711,8 @@ void schedule_VMEM(sched_ctx& ctx, Block* block,
} else if (res == move_fail_pressure) {
break;
}
if (part_of_clause)
add_to_hazard_query(&indep_hq, candidate_ptr);
k++;
if (candidate_idx < ctx.last_SMEM_dep_idx)
ctx.last_SMEM_stall++;