mesa/src/intel/vulkan
Paulo Zanoni f9477770d8 anv: use vk_realloc for the anv_execbuf arrays
Three reasons for that:

0. The operation we're doing here is actually a reallocation.

1. The newer code is, IMHO, easier to read.

2. Realloc has this property where sometimes, when possible, it will
   expand your array without moving it somewhere else, so it doesn't
   need to copy the memory contents, returning the original pointer
   back to you. I did some analysis and while that case is not common,
   it does happen sometimes in real world applications (I could see it
   happening in Shootergame and Aztec Ruins, but not Dota 2), so we're
   able to save a few CPU cycles.

v2: Rebase.

Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20703>
2023-01-19 02:21:09 +00:00
..
grl intel/genxml: Add genX_rt_pack.h 2022-12-09 01:43:39 +00:00
i915 anv: use vk_realloc for the anv_execbuf arrays 2023-01-19 02:21:09 +00:00
layers anv: Add layer with work-around for Doom 64 texture corruption 2023-01-02 15:05:06 +00:00
shaders anv: implement generated (indexed) indirect draws 2022-12-23 22:52:50 +00:00
tests anv: Delete softpin checks 2022-09-02 09:40:46 +00:00
anv_allocator.c anv,hasvk: migrate to align64 from util 2023-01-06 17:22:16 +00:00
anv_android.c anv/android: Use VkFormat for externalFormat 2023-01-16 14:10:21 +00:00
anv_android.h anv: move VkImage object allocation to anv_CreateImage 2021-10-06 02:18:39 +00:00
anv_android_stubs.c anv: move VkImage object allocation to anv_CreateImage 2021-10-06 02:18:39 +00:00
anv_batch_chain.c anv: Split i915 code from anv_batch_chain.c 2023-01-17 17:10:18 +00:00
anv_blorp.c anv,hasvk: migrate to u_minify from util 2023-01-06 17:22:16 +00:00
anv_bo_sync.c anv: Add a tracepoint for the fallback implicit sync wait path. 2023-01-12 20:21:03 +00:00
anv_cmd_buffer.c anv,hasvk: migrate to align64 from util 2023-01-06 17:22:16 +00:00
anv_descriptor_set.c anv,hasvk: migrate to align64 from util 2023-01-06 17:22:16 +00:00
anv_device.c anv: Move anv_device_check_status() code to i915/anv_device.c 2023-01-17 17:10:18 +00:00
anv_formats.c anv: Use the YCbCr format info from common code 2023-01-16 14:10:21 +00:00
anv_gem.c anv: Move anv_device_check_status() code to i915/anv_device.c 2023-01-17 17:10:18 +00:00
anv_gem_stubs.c anv: Move anv_device_check_status() code to i915/anv_device.c 2023-01-17 17:10:18 +00:00
anv_generated_indirect_draws.c anv: implement generated (indexed) indirect draws 2022-12-23 22:52:50 +00:00
anv_generated_indirect_draws.h anv: implement generated (indexed) indirect draws 2022-12-23 22:52:50 +00:00
anv_genX.h anv: record secondaries' traces into primaries 2023-01-13 01:22:15 +00:00
anv_image.c anv: Use the YCbCr format info from common code 2023-01-16 14:10:21 +00:00
anv_measure.c anv: Emit CS stall on INTEL_MEASURE timestamp 2023-01-04 22:43:36 +00:00
anv_measure.h anv: add a custom AcquireNextImage2KHR func 2022-02-17 22:15:23 +00:00
anv_nir.h anv: add analysis for push descriptor uses and store it in shader cache 2022-10-14 23:03:16 +00:00
anv_nir_apply_pipeline_layout.c anv: Implement lower_base_workgroup_id 2022-12-01 04:56:48 +00:00
anv_nir_compute_push_layout.c anv,hasvk: migrate to ROUND_DOWN_TO from util 2023-01-06 17:22:16 +00:00
anv_nir_lower_multiview.c utils: Merge util/debug.* into util/u_debug.* and remove util/debug.* 2022-11-02 07:25:39 +00:00
anv_nir_lower_ubo_loads.c anv: invalidate all metadata in anv_nir_lower_ubo_loads 2022-04-19 11:43:55 +00:00
anv_nir_push_descriptor_analysis.c anv: return properly typed value for no ubo promoted 2023-01-09 23:00:24 +00:00
anv_perf.c intel/perf: use the new OA format for Gfx12.5+ 2022-11-17 12:57:06 +00:00
anv_pipeline.c anv,nir: Move the ANV YCbCr lowering pass to common code 2023-01-16 14:10:21 +00:00
anv_pipeline_cache.c anv: implement generated (indexed) indirect draws 2022-12-23 22:52:50 +00:00
anv_private.h anv: Move anv_device_check_status() code to i915/anv_device.c 2023-01-17 17:10:18 +00:00
anv_queue.c anv: fix INTEL_DEBUG=sync 2022-04-22 21:59:50 +00:00
anv_util.c anv: Handle bits to flush data-port's Untyped L1 data cache 2022-08-05 10:43:50 +03:00
anv_utrace.c anv: add support for command buffer tagging in traces 2023-01-13 01:22:15 +00:00
anv_wsi.c intel: Add SUPPORT_INTEL_INTEGRATED_GPUS build argument 2022-11-23 16:57:23 +00:00
genX_acceleration_structure.c anv,hasvk: migrate to align64 from util 2023-01-06 17:22:16 +00:00
genX_blorp_exec.c anv: implement Wa_14015814527 for task shaders 2023-01-03 12:44:08 +00:00
genX_cmd_buffer.c anv: record secondaries' traces into primaries 2023-01-13 01:22:15 +00:00
genX_cmd_draw_generated_indirect.h anv: implement generated (indexed) indirect draws 2022-12-23 22:52:50 +00:00
genX_cmd_draw_helpers.h anv: constify variables and use early returns 2023-01-06 17:22:15 +00:00
genX_gpu_memcpy.c anv: record secondaries' traces into primaries 2023-01-13 01:22:15 +00:00
genX_pipeline.c anv: disable preemption for 3DPRIMITIVE during streamout 2022-12-27 15:53:42 +00:00
genX_query.c anv,hasvk: migrate align32 to the right functions from util 2023-01-06 17:22:16 +00:00
genX_state.c anv: Use the YCbCr format info from common code 2023-01-16 14:10:21 +00:00
gfx8_cmd_buffer.c anv: emit sample mask state independent of fragment stage 2022-12-09 08:00:42 +00:00
meson.build anv: Split i915 code from anv_batch_chain.c 2023-01-17 17:10:18 +00:00
TODO intel: Rename genx keyword to gfxx in source files 2021-04-02 18:33:07 +00:00