From c26bf848ba7c5474ac99ffbe942021d8841e53ed Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 30 Mar 2020 12:09:03 -0500 Subject: [PATCH] nir: Handle vec8/16 in opt_undef_vecN Reviewed-by: Alyssa Rosenzweig Reviewed-by: Ian Romanick Part-of: --- src/compiler/nir/nir_opt_undef.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); -- 2.30.2