mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 04:50:35 +01:00
gallivm: handle non-32 bit undefined
other sized undefs caused llvm asserts Acked-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
b16fd4d9e9
commit
0a73eafdbe
1 changed files with 2 additions and 1 deletions
|
|
@ -1615,8 +1615,9 @@ static void visit_ssa_undef(struct lp_build_nir_context *bld_base,
|
|||
{
|
||||
unsigned num_components = instr->def.num_components;
|
||||
LLVMValueRef undef[NIR_MAX_VEC_COMPONENTS];
|
||||
struct lp_build_context *undef_bld = get_int_bld(bld_base, true, instr->def.bit_size);
|
||||
for (unsigned i = 0; i < num_components; i++)
|
||||
undef[i] = LLVMGetUndef(bld_base->base.vec_type);
|
||||
undef[i] = LLVMGetUndef(undef_bld->vec_type);
|
||||
assign_ssa_dest(bld_base, &instr->def, undef);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue