From 6eb99c78e25b972b9159be002bde821a3378679c Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 10 Jul 2019 09:37:08 -0700 Subject: [PATCH] panfrost/midgard: Drop unnecessary assert Just use the #define instead. Signed-off-by: Alyssa Rosenzweig Suggested-by: Erik Faye-Lund --- src/gallium/drivers/panfrost/midgard/nir_undef_to_zero.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/panfrost/midgard/nir_undef_to_zero.c b/src/gallium/drivers/panfrost/midgard/nir_undef_to_zero.c index aacecc17e9d..447aaebae5c 100644 --- a/src/gallium/drivers/panfrost/midgard/nir_undef_to_zero.c +++ b/src/gallium/drivers/panfrost/midgard/nir_undef_to_zero.c @@ -64,9 +64,7 @@ nir_undef_to_zero(nir_shader *shader) unsigned c = und->def.num_components; unsigned s = und->def.bit_size; - nir_const_value v[16]; - assert(c <= 16); - + nir_const_value v[NIR_MAX_VEC_COMPONENTS]; memset(v, 0, sizeof(v)); b.cursor = nir_before_instr(instr); -- 2.30.2