mesa/src/intel/vulkan
Lionel Landwerlin 0b141f56a3 anv: enable preemption setting on command/batch correctly
The 2 helpers we're using for doing internal operations (copies,
command generation, etc...) can work on command buffers or lower level
batches.

When working with command buffers, the helpers should set the
preemption using genX(cmd_buffer_set_preemption) so that whatever
operation comes after toggles the state back to what it needs and we
minimize the toggles.

When working with batchs, the helpers should disable preemption using
genX(batch_set_preemption) and turn it back on when done.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35030>
(cherry picked from commit c570740272)
2025-05-20 20:18:08 +02:00
..
bvh anv/bvh: Fix copy shader handling sparse buffer 2025-02-27 20:10:10 +00:00
grl clc,libcl: Clean up CL includes 2025-04-11 21:27:37 +00:00
i915 anv: Move code adding protected memory type to common code 2025-03-06 16:25:03 +00: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: Add support to create protected bo and protected exec_queue in Xe KMD 2025-03-06 16:25:03 +00:00
anv_allocator.c anv: pass down buffer usage for isl_buffer_fill_state 2025-03-26 20:19:07 +00:00
anv_android.c anv: add a is_sparse for image format support checks 2025-02-23 15:16:50 +00:00
anv_android.h anv/android: refactor out u_gralloc tiling query 2024-08-05 20:06:06 +00:00
anv_android_stubs.c anv/android: refactor out u_gralloc tiling query 2024-08-05 20:06:06 +00:00
anv_api_version.h anv: advertise Vulkan 1.4 2024-12-02 21:56:39 +00:00
anv_astc_emu.c
anv_batch_chain.c anv: consolidate environment variables 2025-04-04 15:18:28 +00:00
anv_blorp.c anv: use companion batch for operations with HIZ/STC_CCS destination 2025-04-27 11:45:21 +02:00
anv_bo_sync.c anv: Add missing ANV_BO_ALLOC_INTERNAL 2024-04-19 13:15:01 +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: pass physical device to format helpers 2025-01-29 13:57:26 +00:00
anv_cmd_buffer.c anv: move xfb buffer storage to 64bit address + mocs 2025-03-12 09:37:50 +00:00
anv_descriptor_set.c anv: put parenthesis to the set_sampler_size equation 2025-04-30 14:15:45 +02:00
anv_device.c anv: limit implict write with drirc 2025-03-27 08:28:20 +00:00
anv_event.c anv: split events from anv_device.c 2024-07-22 18:46:05 +00:00
anv_formats.c anv: consolidate environment variables 2025-04-04 15:18:28 +00:00
anv_gem.c anv: remove some wrapping around mmap 2024-03-05 07:03:13 +00:00
anv_gem_stubs.c anv: make device initialization more asynchronous 2024-06-13 08:29:25 +00:00
anv_genX.h anv: break down Wa_16014912113 in need/apply parts 2025-03-05 17:20:12 +00:00
anv_image.c anv: re enable compression for CPS surfaces on platforms other than Xe 2025-04-22 01:24:32 +02:00
anv_image_host_copy.c anv: handle REMAINING_LAYERS in host image copy cases 2025-01-30 19:24:47 +00:00
anv_image_view.c anv: rename compressed format emulation helpers 2025-02-23 15:16:50 +00:00
anv_instance.c anv: add shader-hash debug option 2025-04-04 15:18:28 +00:00
anv_internal_kernels.c nir/peephole_select: add options struct 2025-02-20 21:59:16 +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: switch to use brw's prog_data source_hash 2025-02-22 08:30:22 +00:00
anv_measure.h
anv_mesh_perprim_wa.c anv/Wa_18019110168: copy the primitive count writes 2025-01-24 10:19:28 +00:00
anv_nir.h anv: simplify loading driver internal constants 2024-08-22 19:44:39 +00:00
anv_nir_apply_pipeline_layout.c anv: fix self dependency computation 2025-04-10 13:17:53 +00:00
anv_nir_compute_push_layout.c anv: move reg_mask push constant field to gfx 2025-02-15 18:38:14 +02:00
anv_nir_lower_load_patch_vertices_in.c anv: simplify loading driver internal constants 2024-08-22 19:44:39 +00:00
anv_nir_lower_multiview.c anv: disable replication when we don't have both VS/FS stages 2025-03-25 11:23:45 +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 Revert in correct commit "fix" 2024-11-26 16:36:06 +02:00
anv_nir_push_descriptor_analysis.c anv: add pipeline/shader support for descriptor buffers 2024-02-29 07:05:06 +00:00
anv_perf.c anv: Enable perf metrics id set syncronization 2024-11-05 19:25:53 +00:00
anv_physical_device.c anv: Enable preemption due 3DPRIMITIVE in GFX 12 2025-05-20 20:18:07 +02:00
anv_pipeline.c brw: add pre ray trace intrinsic moves 2025-05-06 17:24:10 +02:00
anv_pipeline_cache.c anv: fix self dependency computation 2025-04-10 13:17:53 +00:00
anv_private.h intel: fix null render target setup logic 2025-05-03 12:48:02 +02:00
anv_queue.c anv/bvh: Dump BVH synchronously upon command buffer completion 2024-12-16 23:01:11 +00:00
anv_rmv.c
anv_rmv.h
anv_sampler.c anv: split sampler from anv_device.c 2024-07-22 18:46:05 +00:00
anv_sparse.c anv: Implement VK_EXT_device_memory_report 2025-03-04 15:24:39 +00:00
anv_util.c intel: port to u_printf context + singleton 2025-02-05 20:33:15 +00:00
anv_utrace.c intel/ds: rework RT tracepoints 2025-02-24 08:08:02 +00:00
anv_va.c anv: track the first 2MB of unused VA 2025-02-05 09:56:03 +00:00
anv_video.c anv: Add stdSyntaxFlag values for h264/5 encoders 2025-03-25 23:54:32 +00:00
anv_wsi.c anv: support protected surfaces with display platform 2025-02-11 22:03:09 +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 vulkan: add leaves and ir_leaves sizes to encode for utrace. 2025-03-28 18:25:40 +00:00
genX_acceleration_structure_grl.c anv: Split GRL code path in separate file 2024-12-04 10:41:44 +00:00
genX_blorp_exec.c anv: move index buffer entry point out of genX code 2025-03-12 09:37:50 +00:00
genX_cmd_buffer.c anv: Fix untyped data port cache pipe control dump output 2025-05-20 20:18:04 +02:00
genX_cmd_compute.c anv: add shader-hash debug option 2025-04-04 15:18:28 +00:00
genX_cmd_draw.c anv: Implement missing part of Wa_1604061319 2025-05-20 20:18:07 +02:00
genX_cmd_draw_generated_flush.h
genX_cmd_draw_generated_indirect.h anv: Implement VK_EXT_device_memory_report 2025-03-04 15:24:39 +00:00
genX_cmd_draw_helpers.h anv: create new helper for small allocations 2024-02-29 07:05:06 +00:00
genX_cmd_video.c anv: Use vk_video_derive_h265_scaling_list 2025-04-04 07:23:48 +00:00
genX_cmd_video_enc.c anv/genxml: use special genX video pack files 2025-04-01 00:03:56 +03:00
genX_gfx_state.c anv: enable preemption setting on command/batch correctly 2025-05-20 20:18:08 +02:00
genX_gpu_memcpy.c anv: enable preemption setting on command/batch correctly 2025-05-20 20:18:08 +02:00
genX_init_state.c anv: Enable preemption due 3DPRIMITIVE in GFX 12 2025-05-20 20:18:07 +02:00
genX_internal_kernels.c intel: move internal shader compile to vtn_bindgen2 2025-02-01 07:54:37 +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 self dependency computation 2025-04-10 13:17:53 +00:00
genX_query.c anv: fix end of pipe timestamp query writes 2025-03-25 10:35:19 +00:00
genX_simple_shader.c anv: enable preemption setting on command/batch correctly 2025-05-20 20:18:08 +02:00
meson.build intel/vulkan: Add bvh build dependency 2025-02-01 20:11:28 +01:00