From 51c53969cdaf7ab526b35b04025e6d271553a4a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Pi=C3=B1eiro?= Date: Fri, 6 Mar 2020 13:39:36 +0100 Subject: [PATCH] v3dv/device: tweak ssbo/ubo device limits They still need some review to get some real final values, but what we had before were somewhat too low. Increasing them a little. This allows to get some CTS tests from skip to pass, which afais they are using reasonable values. Part-of: --- src/broadcom/vulkan/v3dv_device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/broadcom/vulkan/v3dv_device.c b/src/broadcom/vulkan/v3dv_device.c index 5cbbb9bfea8..12033618b6d 100644 --- a/src/broadcom/vulkan/v3dv_device.c +++ b/src/broadcom/vulkan/v3dv_device.c @@ -621,7 +621,8 @@ v3dv_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, /* Per-stage limits */ const uint32_t max_samplers = 16; const uint32_t max_uniform_buffers = 12; - const uint32_t max_storage_buffers = 4; + const uint32_t max_storage_buffers = 12; + const uint32_t max_dynamic_storage_buffers = 6; const uint32_t max_sampled_images = 16; const uint32_t max_storage_images = 4; @@ -664,7 +665,7 @@ v3dv_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, .maxDescriptorSetUniformBuffers = 6 * max_uniform_buffers, .maxDescriptorSetUniformBuffersDynamic = 8, .maxDescriptorSetStorageBuffers = 6 * max_storage_buffers, - .maxDescriptorSetStorageBuffersDynamic = 4, + .maxDescriptorSetStorageBuffersDynamic = 6 * max_dynamic_storage_buffers, .maxDescriptorSetSampledImages = 6 * max_sampled_images, .maxDescriptorSetStorageImages = 6 * max_storage_images, .maxDescriptorSetInputAttachments = 4,