aco: fix copy+paste error
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 22 Oct 2019 14:16:37 +0000 (15:16 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Thu, 21 Nov 2019 20:28:57 +0000 (20:28 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
src/amd/compiler/aco_insert_waitcnt.cpp

index 5d65ae253ffc373eff2704f5bb42b6821f168032..725e8914071e6540f01ebd8c4c89a92152869753 100644 (file)
@@ -552,8 +552,8 @@ void update_counters_for_flat_load(wait_ctx& ctx, barrier_interaction barrier=ba
 
    if (ctx.lgkm_cnt <= ctx.max_lgkm_cnt)
       ctx.lgkm_cnt++;
-   if (ctx.lgkm_cnt <= ctx.max_vm_cnt)
-   ctx.vm_cnt++;
+   if (ctx.vm_cnt <= ctx.max_vm_cnt)
+      ctx.vm_cnt++;
 
    update_barrier_imm(ctx, counter_vm | counter_lgkm, barrier);