mesa/src/intel/vulkan
Caio Oliveira 0b4d62d340 anv: Allocate prog_data->param array when making internal kernels
As we set prog_data->nr_params, allocate the array like elsewhere.
Current code is getting by because the logic for adding a new element
will realloc it.  But later changes will make the array be accessed
before this reallocation.

This will make sure later patches won't cause tests like

  dEQP-VK.query_pool.statistics_query.compute_shader_invocations.32bits_cmdcopyquerypoolresults_secondary

to fail in gfxver < 125.  Note the bug appears when DRI option
to tweak the thresold to use these shaders is set to 0.  This is
done by the GitLab CI, which allowed testing later patches to find
this issue.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33541>
2025-08-28 00:06:19 +00:00
..
bvh intel/bvh/debug: Adapt instance leaf dumping to support 64-bit RT 2025-04-21 20:10:45 +00:00
i915 anv: Dead code anv_bo_sync 2025-08-16 00:04:46 -04:00
layers anv: reuse object string for RMV token 2024-08-05 21:12:59 +00:00
tests intel/tests: Reduce load from anv_tests 2024-09-09 12:54:34 +00:00
xe anv/i915: Require HAS_EXEC_TIMELINE_FENCES 2025-08-16 00:04:46 -04:00
anv_allocator.c all: rename gl_shader_stage to mesa_shader_stage 2025-08-06 10:28:40 +08:00
anv_android.c anv: adopt common GetAndroidHardwareBufferPropertiesANDROID 2025-08-22 23:40:35 +00:00
anv_android.h anv: drop anv_ahb_format_for_vk_format 2025-08-22 23:40:35 +00:00
anv_android_stubs.c anv: drop anv_ahb_format_for_vk_format 2025-08-22 23:40:35 +00:00
anv_api_version.h anv: advertise Vulkan 1.4 2024-12-02 21:56:39 +00:00
anv_astc_emu.c anv: move over to common descriptor set & pipeline layouts 2025-08-01 11:35:01 +00:00
anv_batch_chain.c anv: Dead code anv_bo_sync 2025-08-16 00:04:46 -04:00
anv_blorp.c anv, hasvk: allow using a 3D image as a resolve target 2025-08-21 20:53:42 +00:00
anv_buffer.c anv: pass down buffer usage for isl_buffer_fill_state 2025-03-26 20:19:07 +00:00
anv_buffer_view.c anv: add support for shaderStorageImageReadWithoutFormat through emulation 2025-06-06 12:28:42 +00:00
anv_cmd_buffer.c anv: dirty descriptor state on CmdSetDescriptorBufferOffets 2025-08-14 07:05:31 +00:00
anv_descriptor_set.c brw,anv: Reduce UBO robustness size alignment to 16 bytes 2025-08-21 09:04:55 +00:00
anv_device.c anv,hasvk: Use vk_drm_syncobj_copy_payloads 2025-08-22 23:05:00 +00:00
anv_embedded_sampler.c anv: extract embedded samplers from pipeline_cache 2025-08-01 11:35:04 +00:00
anv_event.c anv: split events from anv_device.c 2024-07-22 18:46:05 +00:00
anv_formats.c anv: adopt vk_android_get_ahb_image_properties 2025-08-22 23:40:34 +00:00
anv_gem.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
anv_gem_stubs.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
anv_genX.h anv: rework gfx state emission (again) 2025-08-11 11:14:53 +00:00
anv_image.c anv: drop anv_ahb_format_for_vk_format 2025-08-22 23:40:35 +00:00
anv_image_host_copy.c intel: Add and use isl_surf_image_has_unique_tiles() 2025-05-13 15:13:04 +00:00
anv_image_view.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
anv_instance.c anv: advertise present_id/wait behind ANV_USE_WSI_PLATFORM 2025-08-21 07:53:15 +00:00
anv_internal_kernels.c anv: Allocate prog_data->param array when making internal kernels 2025-08-28 00:06:19 +00:00
anv_internal_kernels.h anv: implement Wa_16011107343/22018402687 for generated draws 2024-11-12 22:48:39 +00:00
anv_kmd_backend.c
anv_kmd_backend.h anv: make device initialization more asynchronous 2024-06-13 08:29:25 +00:00
anv_measure.c anv: rework gfx state emission (again) 2025-08-11 11:14:53 +00:00
anv_measure.h
anv_nir.h anv: Mask off excessive invocations 2025-08-12 23:17:02 +00:00
anv_nir_apply_pipeline_layout.c all: rename gl_shader_stage_is_mesh to mesa_shader_stage_is_mesh 2025-08-06 10:28:41 +08:00
anv_nir_compute_push_layout.c brw,anv: Reduce UBO robustness size alignment to 16 bytes 2025-08-21 09:04:55 +00:00
anv_nir_lower_multiview.c treewide: use nir_def_block 2025-08-01 15:34:24 +00:00
anv_nir_lower_resource_intel.c treewide: use nir_metadata_control_flow 2024-06-17 16:28:14 -04:00
anv_nir_lower_ubo_loads.c brw,anv: Reduce UBO robustness size alignment to 16 bytes 2025-08-21 09:04:55 +00:00
anv_nir_lower_unaligned_dispatch.c anv: Mask off excessive invocations 2025-08-12 23:17:02 +00:00
anv_nir_push_descriptor_analysis.c treewide: use nir_def_as_* 2025-08-01 15:34:24 +00:00
anv_perf.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
anv_physical_device.c brw,anv: Reduce UBO robustness size alignment to 16 bytes 2025-08-21 09:04:55 +00:00
anv_pipeline.c vulkan/runtime: use a pipeline flag for unaligned dispatches 2025-08-20 11:17:52 +00:00
anv_pipeline_cache.c anv: Set the Shader capability when compiling the FP64 shader 2025-08-16 00:04:46 -04:00
anv_private.h anv: avoid setting image format twice for AHB image 2025-08-22 23:40:34 +00:00
anv_queue.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
anv_rmv.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
anv_rmv.h anv: initial RMV support 2024-01-23 17:24:19 +00:00
anv_sampler.c anv: rework embedded sampler hashing 2025-07-07 18:53:53 +00:00
anv_slab_bo.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
anv_slab_bo.h anv: Add the base infrastructure to support memory pool 2025-04-30 12:56:39 +00:00
anv_sparse.c anv/sparse: we can support R64 and other atomics emulated formats 2025-08-01 14:51:10 -07:00
anv_util.c anv: rework gfx state emission (again) 2025-08-11 11:14:53 +00:00
anv_utrace.c anv: move URB programming to dynamic emission path 2025-08-01 11:35:07 +00:00
anv_va.c anv: track the first 2MB of unused VA 2025-02-05 09:56:03 +00:00
anv_video.c vulkan: Add a vk_video_session_finish() helper 2025-08-11 20:34:56 +00:00
anv_wsi.c vulkan/wsi: Take a vk_queue in wsi_common_queue_present() 2025-08-22 23:05:02 +00:00
av1_tables.h anv: add default av1 tables from media-driver 2025-01-10 21:45:04 +00:00
genX_acceleration_structure.c anv: Add missing L3 flushes 2025-08-25 17:36:08 +00:00
genX_blorp_exec.c anv: rework gfx state emission (again) 2025-08-11 11:14:53 +00:00
genX_cmd_buffer.c anv: Enable CS stall for ACCELERATION_STRUCTURE_COPY stage 2025-08-25 17:36:08 +00:00
genX_cmd_compute.c anv: Mask off excessive invocations 2025-08-12 23:17:02 +00:00
genX_cmd_draw.c brw,anv: Reduce UBO robustness size alignment to 16 bytes 2025-08-21 09:04:55 +00:00
genX_cmd_draw_generated_flush.h intel: Use _brw suffix for genX headers that rely on brw 2024-02-24 00:24:32 +00:00
genX_cmd_draw_generated_indirect.h anv: store gfx/compute bound shaders on command buffer state 2025-08-01 11:35:08 +00:00
genX_cmd_draw_helpers.h anv: store gfx/compute bound shaders on command buffer state 2025-08-01 11:35:08 +00:00
genX_cmd_video.c anv: Delete anv_video_session_params 2025-08-11 20:34:56 +00:00
genX_cmd_video_enc.c anv: Delete anv_video_session_params 2025-08-11 20:34:56 +00:00
genX_gfx_state.c anv: rework gfx state emission (again) 2025-08-11 11:14:53 +00:00
genX_gpu_memcpy.c anv: rework gfx state emission (again) 2025-08-11 11:14:53 +00:00
genX_init_state.c iris/anv: toggle on CACHE_MODE_0::MsaaFastClearEnabled on BMG G31 2025-08-26 19:35:34 +00:00
genX_internal_kernels.c build: avoid redefining unreachable() which is standard in C23 2025-07-31 17:49:42 +00:00
genX_mi_builder.h anv/genxml: use special genX video pack files 2025-04-01 00:03:56 +03:00
genX_pipeline.c anv: fix R64* vertex buffer format support 2025-08-14 08:34:00 +00:00
genX_query.c anv: move URB programming to dynamic emission path 2025-08-01 11:35:07 +00:00
genX_simple_shader.c anv: rework gfx state emission (again) 2025-08-11 11:14:53 +00:00
meson.build anv: Dead code anv_bo_sync 2025-08-16 00:04:46 -04:00
vp9_tables.h anv: add default vp9 tables from FFMpeg and intel-vaapi-driver 2025-06-13 04:51:51 +00:00