From: Faith Ekstrand Date: Tue, 31 Jan 2023 02:11:50 +0000 (-0600) Subject: nvk: Advertise non-zero descriptor set limits X-Git-Tag: upstream/23.3.3~4469 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0648f0fa03cd5a276b2e57b40b0d8f1e5a5dc003;p=platform%2Fupstream%2Fmesa.git nvk: Advertise non-zero descriptor set limits Right now, everything's pretty much unlimited. We may want to limit UBOs in the future to just what we can bind but everything else will probably remain pretty high. Part-of: --- diff --git a/src/nouveau/vulkan/nvk_physical_device.c b/src/nouveau/vulkan/nvk_physical_device.c index ce77585..d4e65a2 100644 --- a/src/nouveau/vulkan/nvk_physical_device.c +++ b/src/nouveau/vulkan/nvk_physical_device.c @@ -98,6 +98,23 @@ nvk_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, .maxImageArrayLayers = 2048, .maxImageDimension1D = pdevice->dev->chipset >= 0x130 ? 0x8000 : 0x4000, .maxImageDimension2D = pdevice->dev->chipset >= 0x130 ? 0x8000 : 0x4000, + .maxSamplerAllocationCount = 4096, + .maxBoundDescriptorSets = NVK_MAX_SETS, + .maxPerStageDescriptorSamplers = UINT32_MAX, + .maxPerStageDescriptorUniformBuffers = UINT32_MAX, + .maxPerStageDescriptorStorageBuffers = UINT32_MAX, + .maxPerStageDescriptorSampledImages = UINT32_MAX, + .maxPerStageDescriptorStorageImages = UINT32_MAX, + .maxPerStageDescriptorInputAttachments = 0, /* TODO */ + .maxPerStageResources = UINT32_MAX, + .maxDescriptorSetSamplers = UINT32_MAX, + .maxDescriptorSetUniformBuffers = UINT32_MAX, + .maxDescriptorSetUniformBuffersDynamic = NVK_MAX_DYNAMIC_BUFFERS / 2, + .maxDescriptorSetStorageBuffers = UINT32_MAX, + .maxDescriptorSetStorageBuffersDynamic = NVK_MAX_DYNAMIC_BUFFERS / 2, + .maxDescriptorSetSampledImages = UINT32_MAX, + .maxDescriptorSetStorageImages = UINT32_MAX, + .maxDescriptorSetInputAttachments =0, /* TODO */ .maxComputeSharedMemorySize = 49152, .maxComputeWorkGroupCount = {0x7fffffff, 65535, 65535}, .maxComputeWorkGroupInvocations = 1024,