mesa/src/intel/vulkan
Nanley Chery 53440554c4 intel/isl: Add and use ISL_MAIN_TO_CCS_SIZE_RATIO_XE
In iris, use the CCS scale down factor to calculate the impact of CCS on
TBIMR tile sizes. Even though we fall back to a seemingly less accurate
method to calculate the impact of CCS, it ends up giving the same
answer, 1bpp. Anv already uses this factor, so this patch replaces the
constant with this macro.

There are two benefits to doing this:

1) Consistency between anv and iris.

2) Preparation for a future where we no longer use ISL surfaces to
   describe CCS on Xe+. In fact, in iris, we already don't create such
   surfaces on ACM.

I considered using INTEL_AUX_MAP_MAIN_SIZE_SCALEDOWN for the calculation
in both drivers, but the naming is aux-map specific and the scaledown
actually exists on flat-ccs platforms as well.

So, we introduce a new macro for all Xe platforms, currently only used
for the specific use case of TBIMR calculations. We can add more such
macros for future platforms, as needed.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rohan Garg <rohan.garg@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28942>
2024-06-06 23:57:52 +00:00
..
grl Revert "anv/grl: Set INTEL_FORCE_PROBE=* when running intel_clc" 2024-05-30 22:28:50 +00:00
i915 anv: Nuke perf_query_pass from anv_execbuf 2024-05-27 19:34:06 +00:00
layers anv/android: enable emulated astc for applications 2024-05-28 08:11:49 +00:00
tests anv: fail pool allocation when over the maximal size 2023-10-30 14:47:18 +00:00
xe anv/xe: rename and refactor xe_exec_fill_sync() 2024-04-18 19:42:27 +00:00
anv_allocator.c intel/aux_map: Add and use INTEL_AUX_MAP_MAIN_SIZE_SCALEDOWN 2024-06-06 23:57:52 +00:00
anv_android.c anv/anroid: Query gralloc for tiling mode 2024-05-14 09:06:00 +00:00
anv_android.h anv: refactor to use DETECT_OS_ANDROID instead of ANDROID 2024-02-01 19:29:49 +00:00
anv_android_stubs.c anv,hasvk: android ahb is not always exportable 2023-05-11 22:18:03 +00:00
anv_astc_emu.c anv: move astc_emu to use descriptors2 calls 2024-01-02 22:12:02 +00:00
anv_batch_chain.c intel: move debug identifier out of libintel_dev 2024-05-11 01:52:01 +00:00
anv_blorp.c anv: fix incorrect blorp dynamic state heap usage 2024-04-05 09:50:41 +00:00
anv_bo_sync.c anv: Add missing ANV_BO_ALLOC_INTERNAL 2024-04-19 13:15:01 +00:00
anv_cmd_buffer.c anv: move last compute command pointers to the state structure 2024-05-30 06:38:04 +00:00
anv_descriptor_set.c anv: track embedded sampler counts in layouts 2024-03-20 19:29:05 +00:00
anv_device.c anv: expose VK_MESA_image_alignment_control 2024-06-06 19:00:47 +00:00
anv_formats.c anv/sparse: reject all sample flags that non-sparse doesn't support 2024-05-15 08:00:15 +00:00
anv_gem.c anv: remove some wrapping around mmap 2024-03-05 07:03:13 +00:00
anv_gem_stubs.c anv/xe: add a 'flags' parameter to the vm_bind() kmd_backend function 2024-04-18 19:42:27 +00:00
anv_genX.h anv: implement WA 14018283232 2024-06-05 15:22:25 +00:00
anv_image.c intel/aux_map: Add and use INTEL_AUX_MAP_MAIN_SIZE_SCALEDOWN 2024-06-06 23:57:52 +00:00
anv_internal_kernels.c intel/compiler: lower workgoup id to index only for mesh shaders 2024-04-24 20:18:48 +00:00
anv_internal_kernels.h anv: rewrite internal shaders using OpenCL 2024-02-13 00:06:45 +00:00
anv_kmd_backend.c anv: Add gem VM bind and unbind to backend 2023-03-11 17:56:01 +00:00
anv_kmd_backend.h anv/xe: add a 'flags' parameter to the vm_bind() kmd_backend function 2024-04-18 19:42:27 +00:00
anv_measure.c anv: Add missing ANV_BO_ALLOC_INTERNAL 2024-04-19 13:15:01 +00:00
anv_measure.h anv: add a custom AcquireNextImage2KHR func 2022-02-17 22:15:23 +00:00
anv_mesh_perprim_wa.c treewide: Merge num_mesh_vertices_per_primitive and u_vertices_per_prim into mesa_vertices_per_prim 2023-10-26 09:35:04 +00:00
anv_nir.h anv: add pipeline/shader support for descriptor buffers 2024-02-29 07:05:06 +00:00
anv_nir_apply_pipeline_layout.c anv: fix ycbcr plane indexing with indirect descriptors 2024-05-08 21:51:49 +00:00
anv_nir_compute_push_layout.c anv: add pipeline/shader support for descriptor buffers 2024-02-29 07:05:06 +00:00
anv_nir_lower_load_patch_vertices_in.c treewide: Use nir_shader_intrinsic_pass sometimes 2023-08-24 15:48:02 +00:00
anv_nir_lower_multiview.c anv, hasvk: Fix nir_lower_multiview to re-emit outputs before EmitVertex 2024-03-27 04:52:17 +00:00
anv_nir_lower_resource_intel.c anv: add pipeline/shader support for descriptor buffers 2024-02-29 07:05:06 +00:00
anv_nir_lower_ubo_loads.c treewide: Use nir_shader_intrinsic_pass sometimes 2023-08-24 15:48:02 +00: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 intel/perf: Add function to open perf stream 2024-05-07 21:44:34 +00:00
anv_pipeline.c anv: Initialize variable to fix static analyzer warning 2024-06-04 17:38:17 +00:00
anv_pipeline_cache.c anv: switch to vk_device::mem_cache field for default cache 2024-05-20 08:23:48 +00:00
anv_private.h anv: fix pipeline flag fields 2024-06-05 20:30:16 +00:00
anv_queue.c anv: add debug shader printf support 2024-05-15 13:13:38 +00:00
anv_rmv.c anv: initial RMV support 2024-01-23 17:24:19 +00:00
anv_rmv.h anv: initial RMV support 2024-01-23 17:24:19 +00:00
anv_sparse.c anv/sparse: assert a format can't be standard and non-standard 2024-05-15 08:00:16 +00:00
anv_util.c anv: add debug shader printf support 2024-05-15 13:13:38 +00:00
anv_utrace.c anv: factor out some more gpu_memcpy setup 2024-06-05 15:22:25 +00:00
anv_va.c anv: move aux-tt to general state pool 2024-02-29 07:05:06 +00:00
anv_video.c anv: add new heap/pool for descriptor buffers 2024-02-29 07:05:05 +00:00
anv_wsi.c intel: move debug identifier out of libintel_dev 2024-05-11 01:52:01 +00:00
genX_acceleration_structure.c Revert "anv: Disable Ray Tracing on xe2 until our compiler supports Xe2 RT" 2024-05-28 18:45:49 +00:00
genX_blorp_exec.c anv: implement WA 14018283232 2024-06-05 15:22:25 +00:00
genX_cmd_buffer.c anv: factor out some more gpu_memcpy setup 2024-06-05 15:22:25 +00:00
genX_cmd_compute.c intel: fix HW generated local-id with indirect compute walker 2024-05-31 08:44:22 +00:00
genX_cmd_draw.c anv: skip gfx push constants alloc optimization on gfx9/11 2024-05-08 17:21:26 +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: allocate space for generated indirect draw id's using the temporary allocation helper 2024-05-02 08:32:09 +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/video: Fix to set correct offset and size for parsing h265 slice header. 2024-04-08 04:12:07 +00:00
genX_gfx_state.c intel/isl: Add and use ISL_MAIN_TO_CCS_SIZE_RATIO_XE 2024-06-06 23:57:52 +00:00
genX_gpu_memcpy.c anv: implement WA 14018283232 2024-06-05 15:22:25 +00:00
genX_init_state.c Revert "anv: Disable Ray Tracing on xe2 until our compiler supports Xe2 RT" 2024-05-28 18:45:49 +00:00
genX_internal_kernels.c nir: remove global_invocation_id_zero_base 2024-04-24 20:18:49 +00:00
genX_pipeline.c anv: implement mesh shader queries 2024-06-04 16:24:48 +00:00
genX_query.c anv: implement mesh shader queries 2024-06-04 16:24:48 +00:00
genX_simple_shader.c anv: implement WA 14018283232 2024-06-05 15:22:25 +00:00
meson.build meson: add VK_DRIVER_FILES to devenv, alongside the old VK_ICD_FILENAMES 2024-04-02 18:08:52 +00:00