From: Jordan Justen Date: Mon, 2 Oct 2017 07:05:28 +0000 (-0700) Subject: nir: Zero local_size const struct for valgrind & nir_serialize X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d917f57c2f22ee9283795f29fc5977f8189cd3e8;p=mesa.git nir: Zero local_size const struct for valgrind & nir_serialize Signed-off-by: Jordan Justen Reviewed-by: Timothy Arceri Reviewed-by: Kenneth Graunke Reviewed-by: Jason Ekstrand --- diff --git a/src/compiler/nir/nir_lower_system_values.c b/src/compiler/nir/nir_lower_system_values.c index ba20d3083f1..39b1a260bd0 100644 --- a/src/compiler/nir/nir_lower_system_values.c +++ b/src/compiler/nir/nir_lower_system_values.c @@ -58,6 +58,7 @@ convert_block(nir_block *block, nir_builder *b) */ nir_const_value local_size; + memset(&local_size, 0, sizeof(local_size)); local_size.u32[0] = b->shader->info.cs.local_size[0]; local_size.u32[1] = b->shader->info.cs.local_size[1]; local_size.u32[2] = b->shader->info.cs.local_size[2];