mesa/src/intel/vulkan
Jason Ekstrand 934f178341 anv/descriptor_set: Don't fully destroy sets in pool destroy/reset
In 105002bd2d, we fixed a memory leak bug where we weren't properly
destroying descriptor when destroying/resetting a descriptor pool.
However, the only real leak that happened was that we we take a
reference to the descriptor set layout in the descriptor set and we
weren't dropping our reference.  Everything else in the descriptor set
is tied to the pool itself and doesn't need to be freed on a per-set
basis.  This commit changes the destroy/reset functions to only bother
walking the list of sets to unref the layouts and otherwise we just
assume that the whole-pool destroy/reset takes care of the rest.

Now that we're doing more non-trivial things with descriptor sets such
as allocating things with util_vma_heap, per-set destruction is starting
to show up on perf traces.  This takes reset back to where it's supposed
to be as a cheap whole-pool operation.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
2019-04-26 05:40:28 +00:00
..
tests anv/tests: compile to something sensible in release builds 2019-02-14 12:52:34 +00:00
.gitignore
anv_allocator.c anv: use anv_gem_munmap in block pool cleanup 2019-03-07 07:36:28 +02:00
anv_android.c anv: fix build on Nougat 2019-03-21 15:36:39 -07: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 anv: Make all VkDeviceMemory BOs resident permanently 2019-04-19 19:56:42 +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 SSBOs bindings with GPU addresses in the descriptor BO 2019-04-19 19:56:42 +00:00
anv_descriptor_set.c anv/descriptor_set: Don't fully destroy sets in pool destroy/reset 2019-04-26 05:40:28 +00:00
anv_device.c anv: Implement VK_EXT_descriptor_indexing 2019-04-19 19:56:42 +00: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_descriptor_indexing 2019-04-19 19:56:42 +00: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: Move mi_memcpy and mi_memset to gen_mi_builder 2019-04-11 18:04:09 +00:00
anv_icd.py anv: fix python whitespace warning 2018-07-25 20:55:35 +01:00
anv_image.c anv: implement VK_KHR_swapchain revision 70 2019-04-08 18:27:02 +01:00
anv_intel.c anv: drop unneeded KHR suffix 2019-01-08 18:47:56 +00:00
anv_nir.h anv/nir: Add a central helper for figuring out SSBO address formats 2019-04-19 19:56:42 +00:00
anv_nir_add_base_work_group_id.c
anv_nir_apply_pipeline_layout.c anv/nir: Add a central helper for figuring out SSBO address formats 2019-04-19 19:56:42 +00: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
anv_nir_lower_ycbcr_textures.c nir: make nir_const_value scalar 2019-04-14 22:25:56 +02:00
anv_pass.c anv/pass: Flag the need for a RT flush for resolve attachments 2019-03-13 17:58:27 -05:00
anv_pipeline.c anv/nir: Add a central helper for figuring out SSBO address formats 2019-04-19 19:56:42 +00:00
anv_pipeline_cache.c anv: Put image params in the descriptor set buffer on gen8 and earlier 2019-04-19 19:56:42 +00:00
anv_private.h anv: Put binding flags in descriptor set layouts 2019-04-19 19:56:42 +00: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: Add X11 adaptive sync support based on dri options. 2019-04-23 23:49:39 +00: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: limit URB reconfigurations when using blorp 2019-04-19 16:58:06 +01:00
genX_cmd_buffer.c anv: Use bindless textures and samplers 2019-04-19 19:56:42 +00:00
genX_gpu_memcpy.c anv: Move mi_memcpy and mi_memset to gen_mi_builder 2019-04-11 18:04:09 +00:00
genX_pipeline.c anv: limit URB reconfigurations when using blorp 2019-04-19 16:58:06 +01:00
genX_query.c anv: fix argument name for vkCmdEndQuery 2019-04-24 04:33:26 +08:00
genX_state.c anv: Use bindless textures and samplers 2019-04-19 19:56:42 +00:00
meson.build meson: Add dependency on genxml to anvil genfiles 2019-04-17 15:49:55 +02:00
TODO
vk_format_info.h anv: fix build on Nougat 2019-03-21 15:36:39 -07:00