diff options
author | Rhys Perry <pendingchaos02@gmail.com> | 2021-01-14 17:46:50 +0000 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-01-20 16:46:54 +0000 |
commit | faf3e9a27f46df233bfd7d5a6d930343fceb215a (patch) | |
tree | e980949ff38b6554125d510be425dde3b64cb35f /src/amd/compiler/aco_insert_waitcnt.cpp | |
parent | cd29210fcee104e8529490b82d6f408cacc549f4 (diff) | |
download | mesa-faf3e9a27f46df233bfd7d5a6d930343fceb215a.tar.gz |
aco: move VADDR to the end of the operand list
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8523>
Diffstat (limited to 'src/amd/compiler/aco_insert_waitcnt.cpp')
-rw-r--r-- | src/amd/compiler/aco_insert_waitcnt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/compiler/aco_insert_waitcnt.cpp b/src/amd/compiler/aco_insert_waitcnt.cpp index 5adbc1fbd26..765e1f5c45c 100644 --- a/src/amd/compiler/aco_insert_waitcnt.cpp +++ b/src/amd/compiler/aco_insert_waitcnt.cpp @@ -850,10 +850,10 @@ void gen(Instruction* instr, wait_ctx& ctx) insert_wait_entry(ctx, instr->operands[3], event_vmem_gpr_lock); } else if (ctx.chip_class == GFX6 && instr->format == Format::MIMG && - instr->operands.size() >= 4) { + !instr->operands[2].isUndefined()) { ctx.exp_cnt++; update_counters(ctx, event_vmem_gpr_lock); - insert_wait_entry(ctx, instr->operands[3], event_vmem_gpr_lock); + insert_wait_entry(ctx, instr->operands[2], event_vmem_gpr_lock); } break; |