From: Rhys Perry Date: Tue, 22 Oct 2019 14:16:37 +0000 (+0100) Subject: aco: fix copy+paste error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29d131d619c8b14b6d5b795ab3e17931e8e01502;p=mesa.git aco: fix copy+paste error Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann --- 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);