From 29d131d619c8b14b6d5b795ab3e17931e8e01502 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Tue, 22 Oct 2019 15:16:37 +0100 Subject: [PATCH] aco: fix copy+paste error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann --- src/amd/compiler/aco_insert_waitcnt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/compiler/aco_insert_waitcnt.cpp b/src/amd/compiler/aco_insert_waitcnt.cpp index 5d65ae253ff..725e8914071 100644 --- a/src/amd/compiler/aco_insert_waitcnt.cpp +++ b/src/amd/compiler/aco_insert_waitcnt.cpp @@ -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); -- 2.30.2