ralloc: use rzalloc where it's necessary
authorMarek Olšák <marek.olsak@amd.com>
Thu, 6 Oct 2016 22:34:26 +0000 (00:34 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 31 Oct 2016 10:53:38 +0000 (11:53 +0100)
commit52d2b28f7f107fbaff023533a15058055fa73bf0
treeb6f1de58134f1d10fc9dd766b81945021b53513a
parent9454f7c0ef55a9357473e451f0f59432c9438f01
ralloc: use rzalloc where it's necessary

No change in behavior. ralloc_size is equivalent to rzalloc_size.
That will change though.

Calls not switched to rzalloc_size:
- ralloc_vasprintf
- glsl_type::name allocation (it's filled with snprintf)
- C++ classes where valgrind didn't show uninitialized values

I switched most of non-glsl stuff to rzalloc without checking whether
it's really needed.

Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/glsl/ast.h
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/glsl_parser_extras.h
src/compiler/glsl/link_uniform_blocks.cpp
src/compiler/glsl/list.h
src/compiler/nir/nir.c
src/compiler/spirv/vtn_variables.c
src/gallium/drivers/freedreno/ir3/ir3.c
src/gallium/drivers/vc4/vc4_cl.c
src/gallium/drivers/vc4/vc4_program.c
src/mesa/drivers/dri/i965/brw_state_batch.c