}
static inline nir_ssa_def *
-nir_ssa_undef(nir_builder *build, unsigned num_components)
+nir_ssa_undef(nir_builder *build, unsigned num_components, unsigned bit_size)
{
nir_ssa_undef_instr *undef =
nir_ssa_undef_instr_create(build->shader, num_components);
+ undef->def.bit_size = bit_size;
if (!undef)
return NULL;
assert(w[5] == SpvImageOperandsSampleMask);
image.sample = vtn_ssa_value(b, w[6])->def;
} else {
- image.sample = nir_ssa_undef(&b->nb, 1);
+ image.sample = nir_ssa_undef(&b->nb, 1, 32);
}
break;
assert(w[4] == SpvImageOperandsSampleMask);
image.sample = vtn_ssa_value(b, w[5])->def;
} else {
- image.sample = nir_ssa_undef(&b->nb, 1);
+ image.sample = nir_ssa_undef(&b->nb, 1, 32);
}
break;