mesa/src/intel/blorp
José Roberto de Souza ddda68bbf5 intel: Set preferred SLM allocation size >= than SLM size for Xe2
Xe2 has 2 requirements for preferred SLM size:
- this value needs to be >= then SLM size
- this value must be less than shared SLM/L1$ RAM in the sub-slice of platform

Also Xe2 don't have the special '0' encode that sets preferred SLM
allocation size to the maximum supported.
So here setting a value that is equal or larger than SLM size.

It was always setting SLM_ENCODES_128K for LNL A0 stepping probably
because of Wa_16018610683 but this restriction applies to all Xe2
platforms, also because of the first restriction mentioned here
this workaround is not being properly implemented, will fix that
in the next patch.

We should have a formula to calculate a preferred SLM allocation size
for gfx125 and Xe2 platfoms but until that this is enough to fix at
least the applications and tests below on LNL:
- GFXBench Aztec Ruins VK
- GravityMark VK
- Wildlife Extreme VK
- 5 crucible tests

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28910>
2024-05-30 16:46:16 +00:00
..
blorp.c intel/blorp: Add ELK support 2024-02-24 00:24:31 +00:00
blorp.h intel/blorp: remove unused blorp batch flag 2024-04-10 05:38:24 +00:00
blorp_blit.c intel/blorp: Move brw_compiler.h include to where is needed 2024-02-15 10:29:19 +00:00
blorp_brw.c intel/blorp: Remove Gfx8- references in BRW code 2024-02-28 05:45:37 +00:00
blorp_clear.c intel/blorp: add fast clear rectangle dimensions for single sampled TILE64 CCS surfaces 2024-04-04 02:17:34 +00:00
blorp_elk.c intel/blorp: Add ELK support 2024-02-24 00:24:31 +00:00
blorp_genX_exec_brw.h intel: Set preferred SLM allocation size >= than SLM size for Xe2 2024-05-30 16:46:16 +00:00
blorp_genX_exec_elk.h intel: Move slm functions from brw_compiler.h to intel_compute_slm.c/h 2024-05-30 16:46:16 +00:00
blorp_nir_builder.h nir: Drop nir_dest 2023-08-14 21:22:53 +00:00
blorp_priv.h intel/blorp: Remove Gfx8- references in BRW code 2024-02-28 05:45:37 +00:00
meson.build intel: Use _brw suffix for genX headers that rely on brw 2024-02-24 00:24:32 +00:00