radv: always free nir shaders from modules on stack
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 2 May 2017 19:46:06 +0000 (22:46 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 9 May 2017 22:13:44 +0000 (01:13 +0300)
commit45ccb661d8b2aba00f1bdc0d3de4efe5b2a4a9f9
treeefe6f732531acb3233fc8ac670481347af487b1c
parent0ef302638f2883789a3b39c2b6cfd20814efa0bb
radv: always free nir shaders from modules on stack

valgrind reports them as leaked, and I could not find anything making a
copy of the nir pointer. Also, radv_device_init_meta_blit_color() is
already freeing them unconditionally like this.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_blit.c
src/amd/vulkan/radv_query.c