mesa/src/intel/vulkan
Tapani Pälli 47fc359822 anv: release memory allocated by glsl types during spirv_to_nir
Fixes leaks for each glsl_type generated:

  ==32470== 384 bytes in 3 blocks are possibly lost in loss record 18 of 18
  ==32470==    at 0x483880B: malloc (vg_replace_malloc.c:309)
  ==32470==    by 0x4C43F4A: ralloc_size (ralloc.c:119)
  ==32470==    by 0x4C44014: rzalloc_size (ralloc.c:151)
  ==32470==    by 0x4C44258: rzalloc_array_size (ralloc.c:215)
  ==32470==    by 0x4D38957: glsl_type::glsl_type(glsl_struct_field const*, unsigned int, char const*) (glsl_types.cpp:114)
  ==32470==    by 0x4D3BEED: glsl_type::get_struct_instance(glsl_struct_field const*, unsigned int, char const*) (glsl_types.cpp:1146)
  ==32470==    by 0x4D42ECC: glsl_struct_type (nir_types.cpp:501)
  ==32470==    by 0x4CDB5A1: vtn_handle_type (spirv_to_nir.c:1269)
  ==32470==    by 0x4CE53DD: vtn_handle_variable_or_type_instruction (spirv_to_nir.c:4018)
  ==32470==    by 0x4CD8CFF: vtn_foreach_instruction (spirv_to_nir.c:365)
  ==32470==    by 0x4CE5E6B: spirv_to_nir (spirv_to_nir.c:4490)
  ==32470==    by 0x497AF10: anv_shader_compile_to_nir (anv_pipeline.c:173)

v2: move release call to vkDestroyInstance

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2019-03-11 13:14:45 +02:00
..
tests anv/tests: compile to something sensible in release builds 2019-02-14 12:52:34 +00:00
.gitignore anv,nir: add generated files to .gitignore(s) 2018-05-12 20:14:49 -07:00
anv_allocator.c anv: use anv_gem_munmap in block pool cleanup 2019-03-07 07:36:28 +02:00
anv_android.c anv: drop unneeded KHR suffix 2019-01-08 18:47:56 +00:00
anv_android.h anv/android: support creating images from external format 2018-12-19 09:38:41 +02:00
anv_android_stubs.c anv/android: support creating images from external format 2018-12-19 09:38:41 +02:00
anv_batch_chain.c intel/decoders: handle decoding MI_BBS from ring 2019-03-07 15:08:31 +00:00
anv_blorp.c anv/blorp: Delete a pointless assert 2019-02-14 16:04:42 -06:00
anv_cmd_buffer.c anv: Implement VK_EXT_inline_uniform_block 2019-03-05 10:06:50 -06:00
anv_descriptor_set.c anv: release memory allocated by bo_heap when descriptor pool is destroyed 2019-03-11 08:13:27 +02:00
anv_device.c anv: release memory allocated by glsl types during spirv_to_nir 2019-03-11 13:14:45 +02:00
anv_dump.c anv: drop unneeded KHR suffix 2019-01-08 18:47:56 +00:00
anv_entrypoints_gen.py anv: use the platform defines in vk.xml instead of hard-coding them 2019-03-05 11:57:10 +00:00
anv_extensions.py anv: Implement VK_EXT_external_memory_host 2019-03-05 12:59:50 -08:00
anv_extensions_gen.py anv: Add EXT_acquire_xlib_display to anv driver [v3] 2018-06-19 14:17:46 -07:00
anv_formats.c drm-uapi: use local files, not system libdrm 2019-02-14 11:20:00 +00:00
anv_gem.c vulkan: Add VK_EXT_calibrated_timestamps extension (radv and anv) [v5] 2018-10-17 20:10:15 -07:00
anv_gem_stubs.c vulkan: Add VK_EXT_calibrated_timestamps extension (radv and anv) [v5] 2018-10-17 20:10:15 -07:00
anv_genX.h anv: Implement VK_EXT_conditional_rendering for gen 7.5+ 2019-01-18 18:31:44 +00:00
anv_icd.py anv: fix python whitespace warning 2018-07-25 20:55:35 +01:00
anv_image.c isl: Add a swizzle parameter to isl_buffer_fill_state() 2019-03-07 11:39:27 -08:00
anv_intel.c anv: drop unneeded KHR suffix 2019-01-08 18:47:56 +00:00
anv_nir.h anv/nir: Rework arguments to apply_pipeline_layout 2018-11-22 09:17:28 -06:00
anv_nir_add_base_work_group_id.c anv: Implement vkCmdDispatchBase 2018-03-07 12:13:47 -08:00
anv_nir_apply_pipeline_layout.c anv: Implement VK_EXT_inline_uniform_block 2019-03-05 10:06:50 -06:00
anv_nir_lower_input_attachments.c nir, glsl: move pixel_center_integer/origin_upper_left to shader_info.fs 2019-02-21 11:47:59 +01:00
anv_nir_lower_multiview.c nir/builder: Add a build_deref_array_imm helper 2019-03-07 21:20:30 +00:00
anv_nir_lower_push_constants.c spirv/i965/anv: Relax push constant offset assertions being 32-bit aligned 2018-02-28 21:37:40 -08:00
anv_nir_lower_ycbcr_textures.c anv: retain the is_array state in create_plane_tex_instr_implicit 2019-03-05 10:38:31 +00:00
anv_pass.c anv: Implement VK_KHR_depth_stencil_resolve 2019-01-14 10:16:52 -06:00
anv_pipeline.c anv: add support for dumping shader info via VK_EXT_debug_report 2019-03-11 16:16:04 +11:00
anv_pipeline_cache.c anv: call blob_finish when done with it 2019-03-07 07:39:48 +02:00
anv_private.h anv: destroy descriptor sets when pool gets destroyed 2019-03-11 08:13:01 +02:00
anv_queue.c intel/decoders: handle decoding MI_BBS from ring 2019-03-07 15:08:31 +00:00
anv_util.c anv/util: Split a vk_errorv helper out of vk_errorf 2018-10-26 13:27:21 -05:00
anv_wsi.c vulkan/wsi: Use VK_EXT_pci_bus_info for DRM fd matching 2018-10-18 11:29:00 -05:00
anv_wsi_display.c anv,radv: Add support for VK_KHR_get_display_properties2 2018-07-09 17:09:41 -07:00
anv_wsi_wayland.c anv: drop unused includes 2018-10-24 18:15:05 +01:00
anv_wsi_x11.c vulkan: drop always-true param 2018-10-26 18:33:11 +01:00
gen7_cmd_buffer.c anv/cmd_buffer: check for NULL framebuffer 2019-02-12 19:19:13 +01:00
gen8_cmd_buffer.c anv: Remove state flush. 2019-01-17 15:08:22 -08:00
genX_blorp_exec.c anv: narrow flushing of the render target to buffer writes 2019-01-19 15:45:41 +00:00
genX_cmd_buffer.c anv: Add a concept of a descriptor buffer 2019-03-05 10:06:50 -06:00
genX_gpu_memcpy.c anv: narrow flushing of the render target to buffer writes 2019-01-19 15:45:41 +00:00
genX_pipeline.c nir/xfb: adding varyings on nir_xfb_info and gather_info 2019-03-08 15:00:50 +01:00
genX_query.c anv: Implement transform feedback queries 2019-01-22 10:42:57 -06:00
genX_state.c anv: ignore VkSamplerYcbcrConversion on non-yuv formats 2018-12-19 09:38:41 +02:00
meson.build drm-uapi: use local files, not system libdrm 2019-02-14 11:20:00 +00:00
TODO anv: Implement pipeline statistics queries 2017-03-17 12:12:50 -07:00
vk_format_info.h anv: add from/to helpers with android and vulkan formats 2018-12-19 09:38:41 +02:00