aco: fix typo in insert_waitcnt's kill()
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 20 May 2020 17:15:36 +0000 (18:15 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 21 May 2020 13:01:41 +0000 (13:01 +0000)
No shader-db changes

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3004
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5126>

src/amd/compiler/aco_insert_waitcnt.cpp

index 074112fc12dc85d744d1080066356942cb979301..d2d1c76c6c96200e50df10c9fc70798f4bd90b19 100644 (file)
@@ -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);