From: Jason Ekstrand Date: Sat, 4 Mar 2017 18:52:43 +0000 (-0800) Subject: anv: Accurately advertise dynamic descriptor limits X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e44ef4a76d9a3681fb6be605319250d4ab800ee;p=mesa.git anv: Accurately advertise dynamic descriptor limits The number of dynamic descriptors is limited by both the number of descriptors and the total number of dynamic things. Because there isn't a single "maximum dynamic things" limit, we need to divide by two so that they can create the maximum of both UBOs and SSBOs. Reviewed-by: Eduardo Lima Mitev Cc: "17.0 13.0" --- diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 7a087bd0f06..f04e177771e 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -565,9 +565,9 @@ void anv_GetPhysicalDeviceProperties( .maxPerStageResources = 128, .maxDescriptorSetSamplers = 256, .maxDescriptorSetUniformBuffers = 256, - .maxDescriptorSetUniformBuffersDynamic = 256, + .maxDescriptorSetUniformBuffersDynamic = MAX_DYNAMIC_BUFFERS / 2, .maxDescriptorSetStorageBuffers = 256, - .maxDescriptorSetStorageBuffersDynamic = 256, + .maxDescriptorSetStorageBuffersDynamic = MAX_DYNAMIC_BUFFERS / 2, .maxDescriptorSetSampledImages = 256, .maxDescriptorSetStorageImages = 256, .maxDescriptorSetInputAttachments = 256,