nvk: Advertise maxMemoryAllocationCount = 4096
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Mon, 25 Sep 2023 21:59:29 +0000 (16:59 -0500)
committerMarge Bot <emma+marge@anholt.net>
Mon, 25 Sep 2023 22:06:26 +0000 (22:06 +0000)
This is the minimum and also what the proprietary driver advertises.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25383>

src/nouveau/vulkan/nvk_physical_device.c

index 257097d..96d3a3d 100644 (file)
@@ -399,7 +399,7 @@ nvk_get_device_properties(const struct nvk_instance *instance,
       .maxUniformBufferRange = 65536,
       .maxStorageBufferRange = UINT32_MAX,
       .maxPushConstantsSize = NVK_MAX_PUSH_SIZE,
-      .maxMemoryAllocationCount = 1024,
+      .maxMemoryAllocationCount = 4096,
       .maxSamplerAllocationCount = 4000,
       .bufferImageGranularity = info->chipset >= 0x120 ? 0x400 : 0x10000,
       .sparseAddressSpaceSize = UINT32_MAX,