From: Alyssa Rosenzweig Date: Wed, 10 Jul 2019 16:37:08 +0000 (-0700) Subject: panfrost/midgard: Drop unnecessary assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6eb99c78e25b972b9159be002bde821a3378679c;p=mesa.git panfrost/midgard: Drop unnecessary assert Just use the #define instead. Signed-off-by: Alyssa Rosenzweig Suggested-by: Erik Faye-Lund --- 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);