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 <elima@igalia.com> Cc: "17.0 13.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user