From 5a4f6313b106ced3a38936641660daa34ba6aafd Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Mon, 23 Nov 2020 13:15:20 +0000 Subject: [PATCH] aco: implement nir_op_vec5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since sparse fetch/load uses vec5 destinations, it may be possible that we encounter nir_op_vec5. Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 0b539692618..b2c1efc6758 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -1197,7 +1197,8 @@ void visit_alu_instr(isel_context *ctx, nir_alu_instr *instr) switch(instr->op) { case nir_op_vec2: case nir_op_vec3: - case nir_op_vec4: { + case nir_op_vec4: + case nir_op_vec5: { std::array elems; unsigned num = instr->dest.dest.ssa.num_components; for (unsigned i = 0; i < num; ++i)