[Mesa-dev] [PATCH v2 06/32] nir: Zero local_size const struct for valgrind & nir_serialize

Kenneth Graunke kenneth at whitecape.org
Thu Oct 19 23:52:03 UTC 2017


On Wednesday, October 18, 2017 10:31:54 PM PDT Jordan Justen wrote:
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> ---
>  src/compiler/nir/nir_lower_system_values.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/compiler/nir/nir_lower_system_values.c b/src/compiler/nir/nir_lower_system_values.c
> index ba20d3083f..39b1a260bd 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];
> 

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171019/c45f96f5/attachment.sig>


More information about the mesa-dev mailing list