intel/nir: Zero local index const struct for valgrind & nir_serialize
authorJordan Justen <jordan.l.justen@intel.com>
Mon, 2 Oct 2017 07:08:55 +0000 (00:08 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 25 Oct 2017 19:36:21 +0000 (12:36 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_nir_lower_cs_intrinsics.c

index f9322654e7c9ccd0527420942ce2f792e1ed1862..d27727624c64a9ed251ad3b7ca742f21799f8432 100644 (file)
@@ -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];