venus: fix deqp tests failed on iub descriptor type

Fixes: abae9d4831 ("Add the iub binding count tracking")

Signed-off-by: Dawn Han <dawnhan@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20064>
This commit is contained in:
Dawn Han 2022-11-29 23:31:34 +00:00 committed by Marge Bot
parent 12f26b5e6d
commit fbf4c6e43f

View file

@ -502,8 +502,12 @@ vn_descriptor_pool_alloc_descriptors(
* pool to exceed the value of
* VkDescriptorPoolInlineUniformBlockCreateInfo::maxInlineUniformBlockBindings
* used to create the descriptor pool.
*
* If descriptorCount is zero this binding entry is reserved and the
* resource must not be accessed from any stage via this binding within
* any pipeline using the set layout.
*/
if (type == VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK) {
if (type == VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK && count != 0) {
if (++pool->used.iub_binding_count > pool->max.iub_binding_count)
goto fail;
}