<div dir="ltr">I just checked what Rise of the Tomb Raider is using. Maximum it hits for uniform buffers is 15, and 6 for storage buffers. The highest combined total is 15.<div><br></div><div>Alex</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 March 2018 at 20:11, Bas Nieuwenhuizen <span dir="ltr"><<a href="mailto:bas@basnieuwenhuizen.nl" target="_blank">bas@basnieuwenhuizen.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alex,<br>
<br>
How many do you need of either type?<br>
<br>
- Bas<br>
<div><div class="h5"><br>
On Fri, Mar 2, 2018 at 4:28 PM, Alex Smith <<a href="mailto:asmith@feralinteractive.com">asmith@feralinteractive.com</a>> wrote:<br>
> These were set to MAX_DYNAMIC_BUFFERS / 2, which is too restrictive<br>
> since an app may have it's total usage of both uniform and storage<br>
> within MAX_DYNAMIC_BUFFERS, but exceed the limit for one of the types.<br>
><br>
> Recently the validation layers have started raising errors for when<br>
> these limits are exceeded, so these are firing for something that<br>
> actually works just fine.<br>
><br>
> Set the limit for both to MAX_DYNAMIC_BUFFERS. Not ideal because it<br>
> now allows the total across both to exceed the real limit, but we have<br>
> no way to express that limit properly.<br>
><br>
> Cc: <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.<wbr>freedesktop.org</a>><br>
> Signed-off-by: Alex Smith <<a href="mailto:asmith@feralinteractive.com">asmith@feralinteractive.com</a>><br>
> ---<br>
>  src/amd/vulkan/radv_device.c | 4 ++--<br>
>  1 file changed, 2 insertions(+), 2 deletions(-)<br>
><br>
> diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c<br>
> index 36d7a406bf..1e81ddb891 100644<br>
> --- a/src/amd/vulkan/radv_device.c<br>
> +++ b/src/amd/vulkan/radv_device.c<br>
> @@ -717,9 +717,9 @@ void radv_<wbr>GetPhysicalDeviceProperties(<br>
>                 .maxPerStageResources                     = max_descriptor_set_size,<br>
>                 .maxDescriptorSetSamplers                 = max_descriptor_set_size,<br>
>                 .<wbr>maxDescriptorSetUniformBuffers           = max_descriptor_set_size,<br>
> -               .<wbr>maxDescriptorSetUniformBuffers<wbr>Dynamic    = MAX_DYNAMIC_BUFFERS / 2,<br>
> +               .<wbr>maxDescriptorSetUniformBuffers<wbr>Dynamic    = MAX_DYNAMIC_BUFFERS,<br>
>                 .<wbr>maxDescriptorSetStorageBuffers           = max_descriptor_set_size,<br>
> -               .<wbr>maxDescriptorSetStorageBuffers<wbr>Dynamic    = MAX_DYNAMIC_BUFFERS / 2,<br>
> +               .<wbr>maxDescriptorSetStorageBuffers<wbr>Dynamic    = MAX_DYNAMIC_BUFFERS,<br>
>                 .maxDescriptorSetSampledImages            = max_descriptor_set_size,<br>
>                 .maxDescriptorSetStorageImages            = max_descriptor_set_size,<br>
>                 .<wbr>maxDescriptorSetInputAttachmen<wbr>ts         = max_descriptor_set_size,<br>
> --<br>
> 2.14.3<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote></div><br></div>