From 4ac4cdb5bfece49db29939e00dbf8d67fddc3b65 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 16 Sep 2020 15:48:22 +0100 Subject: [PATCH] aco: fix incorrect assertion in emit_vop3a_instruction() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes some float controls tests on Polaris10. Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Fixes: 0b6448bbe791474a152d53bfaf750408807ac166 ('aco/isel: refactor emit_vop3a_instruction() to handle 2 operand instructions') Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 9a9f742f155..7aafe4a27c7 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -812,7 +812,6 @@ void emit_vop3a_instruction(isel_context *ctx, nir_alu_instr *instr, aco_opcode Builder bld(ctx->program, ctx->block); bld.is_precise = instr->exact; if (flush_denorms && ctx->program->chip_class < GFX9) { - assert(dst.size() == 1); Temp tmp; if (num_sources == 3) tmp = bld.vop3(op, bld.def(dst.regClass()), src[0], src[1], src[2]);