diff --git a/src/compiler/nir/nir_opt_undef.c b/src/compiler/nir/nir_opt_undef.c index 1f939e82c68..6342377ba62 100644 --- a/src/compiler/nir/nir_opt_undef.c +++ b/src/compiler/nir/nir_opt_undef.c @@ -77,10 +77,7 @@ opt_undef_csel(nir_alu_instr *instr) static bool opt_undef_vecN(nir_builder *b, nir_alu_instr *alu) { - if (alu->op != nir_op_vec2 && - alu->op != nir_op_vec3 && - alu->op != nir_op_vec4 && - alu->op != nir_op_mov) + if (!nir_op_is_vec(alu->op)) return false; assert(alu->dest.dest.is_ssa);