From 17c7f4e30ed8f7a04ae3ad80e39cfbdf8d8ea46c Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Mon, 23 Mar 2020 13:49:08 +0000 Subject: [PATCH] aco: fix boolean undef regclass MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Cc: Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Tested-by: Marge Bot Part-of: --- src/amd/compiler/aco_instruction_selection_setup.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/compiler/aco_instruction_selection_setup.cpp b/src/amd/compiler/aco_instruction_selection_setup.cpp index feb914e1c53..2bf9ff0e09a 100644 --- a/src/amd/compiler/aco_instruction_selection_setup.cpp +++ b/src/amd/compiler/aco_instruction_selection_setup.cpp @@ -593,6 +593,8 @@ void init_context(isel_context *ctx, nir_shader *shader) unsigned size = nir_instr_as_ssa_undef(instr)->def.num_components; if (nir_instr_as_ssa_undef(instr)->def.bit_size == 64) size *= 2; + else if (nir_instr_as_ssa_undef(instr)->def.bit_size == 1) + size *= lane_mask_size; allocated[nir_instr_as_ssa_undef(instr)->def.index] = Temp(0, RegClass(RegType::sgpr, size)); break; } -- 2.30.2