diff options
author | Jordan Justen <[email protected]> | 2017-10-02 00:05:28 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2017-10-25 12:36:21 -0700 |
commit | d917f57c2f22ee9283795f29fc5977f8189cd3e8 (patch) | |
tree | 592c512668e3ac0c773266786011b5999920693b /src/compiler/nir | |
parent | abbcdc9b69901528c9ea4469a4dc2977c71ff9f9 (diff) |
nir: Zero local_size 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/compiler/nir')
-rw-r--r-- | src/compiler/nir/nir_lower_system_values.c | 1 |
1 files changed, 1 insertions, 0 deletions
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]; |