Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4285>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4285>
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;
}