From 54742e157d16de68e06105910d8e26d3215565c7 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 27 Nov 2019 17:11:58 +0000 Subject: [PATCH] aco: fix incorrect cast in parse_wait_instr() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit s_waitcnt is SOPP, not SOPK Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann --- src/amd/compiler/aco_insert_waitcnt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_insert_waitcnt.cpp b/src/amd/compiler/aco_insert_waitcnt.cpp index f3521013640..7960902d690 100644 --- a/src/amd/compiler/aco_insert_waitcnt.cpp +++ b/src/amd/compiler/aco_insert_waitcnt.cpp @@ -359,7 +359,7 @@ wait_imm parse_wait_instr(wait_ctx& ctx, Instruction *instr) imm.vs = std::min(imm.vs, static_cast(instr)->imm); return imm; } else if (instr->opcode == aco_opcode::s_waitcnt) { - return wait_imm(ctx.chip_class, static_cast(instr)->imm); + return wait_imm(ctx.chip_class, static_cast(instr)->imm); } return wait_imm(); } -- 2.30.2