[Mesa-dev] [PATCH v2 07/32] intel/nir: Zero local index const struct for valgrind & nir_serialize

Kenneth Graunke kenneth at whitecape.org
Thu Oct 19 23:53:11 UTC 2017


On Wednesday, October 18, 2017 10:31:55 PM PDT Jordan Justen wrote:
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> ---
>  src/intel/compiler/brw_nir_lower_cs_intrinsics.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/intel/compiler/brw_nir_lower_cs_intrinsics.c b/src/intel/compiler/brw_nir_lower_cs_intrinsics.c
> index f9322654e7..d27727624c 100644
> --- a/src/intel/compiler/brw_nir_lower_cs_intrinsics.c
> +++ b/src/intel/compiler/brw_nir_lower_cs_intrinsics.c
> @@ -116,6 +116,7 @@ lower_cs_intrinsics_convert_block(struct lower_intrinsics_state *state,
>           nir_ssa_def *local_index = nir_load_local_invocation_index(b);
>  
>           nir_const_value uvec3;
> +         memset(&uvec3, 0, sizeof(uvec3));
>           uvec3.u32[0] = 1;
>           uvec3.u32[1] = size[0];
>           uvec3.u32[2] = size[0] * size[1];
> 

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/8c57f571/attachment.sig>


More information about the mesa-dev mailing list