diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-07-10 09:37:08 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-07-10 09:37:08 -0700 |
commit | 6eb99c78e25b972b9159be002bde821a3378679c (patch) | |
tree | 56f7cd0228375c84f2eebde2194ed9a9095c29e0 /src/gallium | |
parent | c1b109caeca59c50db070c9a489408195c1719b7 (diff) |
panfrost/midgard: Drop unnecessary assert
Just use the #define instead.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Suggested-by: Erik Faye-Lund <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/panfrost/midgard/nir_undef_to_zero.c | 4 |
1 files changed, 1 insertions, 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); |