nir: zero allocated memory where needed

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Juha-Pekka Heikkila
2016-10-11 13:54:58 +03:00
committed by Marek Olšák
parent 4d4335c81a
commit 3bf6c6c3ad
6 changed files with 7 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ nir_shader_create(void *mem_ctx,
const nir_shader_compiler_options *options,
shader_info *si)
{
nir_shader *shader = ralloc(mem_ctx, nir_shader);
nir_shader *shader = rzalloc(mem_ctx, nir_shader);
exec_list_make_empty(&shader->uniforms);
exec_list_make_empty(&shader->inputs);
@@ -336,7 +336,7 @@ nir_function_impl_create(nir_function *function)
nir_block *
nir_block_create(nir_shader *shader)
{
nir_block *block = ralloc(shader, nir_block);
nir_block *block = rzalloc(shader, nir_block);
cf_init(&block->cf_node, nir_cf_node_block);