diff options
author | Jordan Justen <[email protected]> | 2017-10-02 00:08:55 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2017-10-25 12:36:21 -0700 |
commit | b35e8c3b868a2c8ba086cc8667fee2736e157fad (patch) | |
tree | 541f8309991ca00a146abfc3f0240e004a604a39 /src | |
parent | d917f57c2f22ee9283795f29fc5977f8189cd3e8 (diff) |
intel/nir: Zero local index const struct for valgrind & nir_serialize
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/compiler/brw_nir_lower_cs_intrinsics.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_nir_lower_cs_intrinsics.c b/src/intel/compiler/brw_nir_lower_cs_intrinsics.c index f9322654e7c..d27727624c6 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]; |