From: Jason Ekstrand Date: Mon, 30 Mar 2020 17:09:03 +0000 (-0500) Subject: nir: Handle vec8/16 in opt_undef_vecN X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c26bf848ba7c5474ac99ffbe942021d8841e53ed;p=mesa.git nir: Handle vec8/16 in opt_undef_vecN Reviewed-by: Alyssa Rosenzweig Reviewed-by: Ian Romanick Part-of: --- 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);