Mesa (main): aco: remove unnecessary exp_cnt increments

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 20 14:30:12 UTC 2022


Module: Mesa
Branch: main
Commit: 37dda55f46e9f85f02d60c534219b0c5cc25abc3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=37dda55f46e9f85f02d60c534219b0c5cc25abc3

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Mon Jun 27 15:44:38 2022 +0100

aco: remove unnecessary exp_cnt increments

update_counters() already does this.

Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17257>

---

 src/amd/compiler/aco_insert_waitcnt.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/amd/compiler/aco_insert_waitcnt.cpp b/src/amd/compiler/aco_insert_waitcnt.cpp
index 3c04d304aad..e435f8f60d1 100644
--- a/src/amd/compiler/aco_insert_waitcnt.cpp
+++ b/src/amd/compiler/aco_insert_waitcnt.cpp
@@ -694,11 +694,9 @@ gen(Instruction* instr, wait_ctx& ctx)
          insert_wait_entry(ctx, instr->definitions[0], ev, get_vmem_type(instr));
 
       if (ctx.gfx_level == GFX6 && instr->format != Format::MIMG && instr->operands.size() == 4) {
-         ctx.exp_cnt++;
          update_counters(ctx, event_vmem_gpr_lock);
          insert_wait_entry(ctx, instr->operands[3], event_vmem_gpr_lock);
       } else if (ctx.gfx_level == GFX6 && instr->isMIMG() && !instr->operands[2].isUndefined()) {
-         ctx.exp_cnt++;
          update_counters(ctx, event_vmem_gpr_lock);
          insert_wait_entry(ctx, instr->operands[2], event_vmem_gpr_lock);
       }



More information about the mesa-commit mailing list