mesa/src/intel/vulkan
Yiwei Zhang 2797c75426 anv: fix AHB leak upon exportable allocation
A successful AHardwareBuffer_allocate itself will increase a refcount on
the newly allocated AHB. For the import case, the implementation must
acquire a reference on the AHB. So if we layer the exportable allocation
on top of AHB allocation and AHB import, we must release an AHB
reference to avoid leak.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10940>
2021-05-25 06:31:25 +00:00
..
tests anv: implement INTEL_DEBUG=submit 2021-03-04 19:46:24 +02:00
anv_allocator.c intel: Rename gen_device prefix to intel_device 2021-04-20 20:06:33 +00:00
anv_android.c anv: fix AHB leak upon exportable allocation 2021-05-25 06:31:25 +00:00
anv_android.h anv: Drop unneeded struct keywords 2020-01-03 11:32:34 -06:00
anv_android_stubs.c anv: Drop unneeded struct keywords 2020-01-03 11:32:34 -06:00
anv_batch_chain.c intel: Rename GEN_PERF prefix to INTEL_PERF in source files 2021-04-20 20:06:34 +00:00
anv_blorp.c anv: Avoid corrupting indirect depth clear values 2021-04-14 21:00:41 +00:00
anv_cmd_buffer.c anv: Use brw_cs_get_dispatch_info() 2021-05-04 08:15:19 -07:00
anv_descriptor_set.c intel: simplify is_haswell checks, part 1 2021-05-17 09:46:45 +00:00
anv_device.c anv: fix AHB leak upon exportable allocation 2021-05-25 06:31:25 +00:00
anv_formats.c anv: require rendering support for blit destination feature 2021-05-17 10:24:28 +00:00
anv_gem.c anv: Use fallback paths if DRM_I915_QUERY_ENGINE_INFO fails 2021-03-18 00:54:29 +00:00
anv_gem_stubs.c anv: Support multiple engines with DRM_IOCTL_I915_GEM_CONTEXT_CREATE_EXT 2021-01-28 18:26:33 +00:00
anv_genX.h anv: implement VK_KHR_fragment_shading_rate 2021-05-02 20:20:06 +00:00
anv_image.c anv: Fix unused function warnings for memory range checks. 2021-05-20 17:11:22 +00:00
anv_measure.c intel: Rename genx keyword to gfxx in source files 2021-04-02 18:33:07 +00:00
anv_measure.h intel: support secondary command buffers in INTEL_MEASURE 2021-02-01 17:24:57 -08:00
anv_nir.h anv: Do UBO loads with global addresses for bindless 2021-03-17 17:49:59 +00:00
anv_nir_add_base_work_group_id.c nir: Make nir_ssa_def_rewrite_uses_after take an SSA value 2021-03-08 16:59:55 +00:00
anv_nir_apply_pipeline_layout.c intel: simplify is_haswell checks, part 2 2021-05-17 09:46:45 +00:00
anv_nir_compute_push_layout.c anv: Push at most 32 regs for vec4 shaders 2021-05-19 14:38:13 +00:00
anv_nir_lower_multiview.c intel: Rename gen field in gen_device_info struct to ver 2021-04-02 18:33:07 +00:00
anv_nir_lower_ubo_loads.c anv: Add a pass for lowering A64 UBO access 2021-03-17 17:49:59 +00:00
anv_nir_lower_ycbcr_textures.c Convert most remaining free-form fall-through comments to FALLTHROUGH 2021-04-15 16:01:22 +00:00
anv_pass.c anv: Use vk_object_alloc/free 2021-04-10 02:18:02 +00:00
anv_perf.c intel/perf: allow metric sets to be loaded with on OA reports 2021-05-18 14:28:48 +00:00
anv_pipeline.c anv: handle spirv parsing failure 2021-05-14 06:32:03 +00:00
anv_pipeline_cache.c vulkan/alloc: Add VK_MULTIALLOC_DECL macros 2021-03-10 20:59:55 -06:00
anv_private.h anv: Avoid sampling some MCS surfaces with clear 2021-05-14 18:05:32 +00:00
anv_queue.c anv: fix perf query pass with command buffer batching 2021-05-13 17:02:41 +00:00
anv_util.c vulkan: Make the debug_report implementation internal 2021-02-01 18:54:25 +00:00
anv_wsi.c intel: Rename gen_{mapped, clflush, invalidate} prefix to intel_{..} 2021-04-20 20:06:34 +00:00
anv_wsi_display.c anv: Move vk_format helpers to common code 2021-03-10 18:17:31 +00:00
anv_wsi_wayland.c anv: Use the common dispatch framework 2021-02-01 18:54:24 +00:00
anv_wsi_x11.c anv: Use the common dispatch framework 2021-02-01 18:54:24 +00:00
genX_blorp_exec.c intel: Rename genx keyword to gfxx in source files 2021-04-02 18:33:07 +00:00
genX_cmd_buffer.c anv: Support pushing shader constants 2021-05-19 14:38:13 +00:00
genX_gpu_memcpy.c intel: Rename genx keyword to gfxx in source files 2021-04-02 18:33:07 +00:00
genX_pipeline.c intel/genxml: rewrite the prefilterop xml to be more consistent. 2021-05-05 02:56:20 +00:00
genX_query.c intel: Rename GEN_PERF prefix to INTEL_PERF in source files 2021-04-20 20:06:34 +00:00
genX_state.c intel/genxml: rewrite the prefilterop xml to be more consistent. 2021-05-05 02:56:20 +00:00
gfx7_cmd_buffer.c anv: implement VK_EXT_color_write_enable 2021-04-22 15:34:52 +00:00
gfx8_cmd_buffer.c anv: implement VK_KHR_fragment_shading_rate 2021-05-02 20:20:06 +00:00
meson.build intel: Rename _gen keyword to _gfx_ver in few build files 2021-04-20 20:06:34 +00:00
TODO intel: Rename genx keyword to gfxx in source files 2021-04-02 18:33:07 +00:00