mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
v3dv: bump maxComputeSharedMemorySize to 32 KB
Currently local shared memory is backed by a BO that is read/written using the TMU. ggml-vulkan probes the size of maxComputeSharedMemorySize and rejects V3DV (falling back to CPU) when the value is below what its larger compute pipelines request, although in the end the shaders ollama runs don't actually use shared memory. 32 KB is what ggml-vulkan demands; the value can grow further with no real per-op cost since shared memory currently goes through the TMU like any other BO. V3D OpenGL driver also has 32 KB for SharedMemory. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41257>
This commit is contained in:
parent
ee5daf590b
commit
e378a7d773
1 changed files with 1 additions and 1 deletions
|
|
@ -1020,7 +1020,7 @@ get_device_properties(const struct v3dv_physical_device *device,
|
|||
MAX_STORAGE_IMAGES,
|
||||
|
||||
/* Compute limits */
|
||||
.maxComputeSharedMemorySize = 16384,
|
||||
.maxComputeSharedMemorySize = 32u * 1024u,
|
||||
.maxComputeWorkGroupCount = { 65535, 65535, 65535 },
|
||||
.maxComputeWorkGroupInvocations = 256,
|
||||
.maxComputeWorkGroupSize = { 256, 256, 256 },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue