diff --git a/src/compiler/nir/nir_opt_copy_propagate.c b/src/compiler/nir/nir_opt_copy_propagate.c index 00c78f38451..4a98a2812c3 100644 --- a/src/compiler/nir/nir_opt_copy_propagate.c +++ b/src/compiler/nir/nir_opt_copy_propagate.c @@ -61,9 +61,8 @@ static bool is_vec(nir_alu_instr *instr) return false; } - return instr->op == nir_op_vec2 || - instr->op == nir_op_vec3 || - instr->op == nir_op_vec4; + assert(instr->dest.dest.is_ssa); + return nir_op_is_vec(instr->op); } static bool