mesa/src
Paulo Zanoni c7dfe51eb3 intel: fix compute SLM sizes on Xe2 and newer
Before the patch, intel_device_info_get_max_preferred_slm_size()
returns values in kilobytes, but then
intel_device_info_get_max_slm_size() is multiplying it by 1024.
As a result, LNL is reporting maxComputeSharedMemorySize to be
134217728, which is 128mb.

Fix this by making intel_device_info_get_max_slm_size() not multiply
it by 1024.

This should fix at least the following dEQP tests:
    dEQP-VK.compute.pipeline.zero_initialize_workgroup_memory.max_workgroup_memory.1
    dEQP-VK.compute.pipeline.zero_initialize_workgroup_memory.max_workgroup_memory.128
    dEQP-VK.compute.pipeline.zero_initialize_workgroup_memory.max_workgroup_memory.16
    dEQP-VK.compute.pipeline.zero_initialize_workgroup_memory.max_workgroup_memory.2
    dEQP-VK.compute.pipeline.zero_initialize_workgroup_memory.max_workgroup_memory.4
    dEQP-VK.compute.pipeline.zero_initialize_workgroup_memory.max_workgroup_memory.64

Some tests were failing with:
    deqp-vk: ../../src/intel/common/intel_compute_slm.c:24: slm_encode_lookup: Assertion `kbytes <= table[table_len - 1].size_in_kb' failed.
while other tests were triggering the OOM.

v2:
 - Make everybody return sizes in bytes (José).
v3:
 - Rename variable to bytes (José, Jordan).

Fixes: fd368f5521 ("anv: Set maxComputeSharedMemorySize value for Xe2 platforms")
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30541>
(cherry picked from commit 0e38b794e2)
2024-08-14 11:51:03 +02:00
..
amd aco/gfx11+: don't use VOP3 v_swap_b16 2024-08-07 10:28:54 +02:00
android_stub vulkan/android: Add helper to probe AHB support 2024-05-14 14:53:44 +00:00
asahi format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
broadcom spirv: handle function parameters passed by value 2024-07-23 21:58:58 +02:00
c11 build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
compiler glsl: fix glsl to nir support for lower precision builtins 2024-08-06 15:18:53 +02:00
drm-shim drm-shim: stub synobj_timeline_wait and query ioctl 2024-07-16 11:17:59 +02:00
egl egl/haiku: fix synchronization problems, add missing header 2024-07-28 22:00:50 +02:00
etnaviv format: Generate endian-independent format aliases 2024-07-19 13:50:42 +00:00
freedreno freedreno/a6xx: Initial a7xx support 2024-08-06 15:09:42 +02:00
gallium Revert "d3d12: Video Encode - Remove PIPE_VIDEO_PROFILE_MPEG4_AVC_BASELINE as not supported" 2024-08-14 11:50:40 +02:00
gbm gbm/dri: Remove erroneous assert 2024-08-04 22:43:06 +02:00
getopt build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
glx glx: include src/gallium for apple 2024-08-04 22:42:44 +02:00
gtest build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
imagination pvr: Handle VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO 2024-07-23 22:02:50 +02:00
imgui
intel intel: fix compute SLM sizes on Xe2 and newer 2024-08-14 11:51:03 +02:00
loader loader: gc loader_get_extensions_name() and __DRI_DRIVER_{GET_,}EXTENSIONS defines 2024-07-21 14:59:05 +02:00
mapi mesa_interface: Move out of GL/internal/ 2024-07-17 23:47:05 +00:00
mesa mesa: check for enabled extensions for *UID enums 2024-08-04 22:43:16 +02:00
microsoft microsoft/clc: Split struct copies before vars_to_ssa in pre-inline optimizations 2024-07-23 21:58:56 +02:00
nouveau nak: Sample locations are byte-aligned 2024-08-06 15:17:03 +02:00
panfrost panvk: Pass attrib_buf_idx_offset to desc_copy_info 2024-07-28 21:53:05 +02:00
tool build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
util anv: disable CCS for Source2 games on Xe2 2024-08-06 15:16:54 +02:00
virtio venus: fix a race condition between gem close and gem handle tracking 2024-07-28 21:52:50 +02:00
vulkan vulkan/runtime: allow null/empty debug names 2024-08-06 15:18:16 +02:00
.clang-format asahi: add agx_ppp_push_merged helper 2024-05-14 04:57:27 +00:00
meson.build gbm: link directly with libgallium 2024-07-18 20:30:43 +00:00