From: Rhys Perry Date: Mon, 23 Mar 2020 13:49:08 +0000 (+0000) Subject: aco: fix boolean undef regclass X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17c7f4e30ed8f7a04ae3ad80e39cfbdf8d8ea46c;p=mesa.git aco: fix boolean undef regclass Cc: Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Tested-by: Marge Bot Part-of: --- 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; }