From: Rhys Perry Date: Wed, 27 Nov 2019 17:11:58 +0000 (+0000) Subject: aco: fix incorrect cast in parse_wait_instr() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54742e157d16de68e06105910d8e26d3215565c7;p=mesa.git aco: fix incorrect cast in parse_wait_instr() s_waitcnt is SOPP, not SOPK 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 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(); }