From: Rhys Perry Date: Wed, 20 May 2020 17:15:36 +0000 (+0100) Subject: aco: fix typo in insert_waitcnt's kill() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40ed7fcc0bac0cf46188a527deb44b038f0c0b59;p=mesa.git aco: fix typo in insert_waitcnt's kill() No shader-db changes Signed-off-by: Rhys Perry Reviewed-by: Samuel Pitoiset Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3004 Part-of: --- diff --git a/src/amd/compiler/aco_insert_waitcnt.cpp b/src/amd/compiler/aco_insert_waitcnt.cpp index 074112fc12d..d2d1c76c6c9 100644 --- a/src/amd/compiler/aco_insert_waitcnt.cpp +++ b/src/amd/compiler/aco_insert_waitcnt.cpp @@ -555,7 +555,7 @@ wait_imm kill(Instruction* instr, wait_ctx& ctx) ctx.wait_and_remove_from_entry(it->first, it->second, counter_vm); if (imm.lgkm != wait_imm::unset_counter && imm.lgkm <= it->second.imm.lgkm) ctx.wait_and_remove_from_entry(it->first, it->second, counter_lgkm); - if (imm.lgkm != wait_imm::unset_counter && imm.vs <= it->second.imm.vs) + if (imm.vs != wait_imm::unset_counter && imm.vs <= it->second.imm.vs) ctx.wait_and_remove_from_entry(it->first, it->second, counter_vs); if (!it->second.counters) it = ctx.gpr_map.erase(it);