v3dv: fix pool descriptor count for inline uniform buffers

Fixes VK_ERROR_OUT_OF_POOL_MEMORY in the inlineuniformblocks
sample from Sascha Willems.

Fixes: ea3223e7a4 ('v3dv: implement VK_EXT_inline_uniform_block')
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17311>
This commit is contained in:
Iago Toral Quiroga 2022-06-30 13:34:32 +02:00 committed by Marge Bot
parent d5884a716f
commit 7b91b39ba5

View file

@ -450,7 +450,7 @@ v3dv_CreateDescriptorPool(VkDevice _device,
* size as the size in bytes of the block.
*/
assert(inline_info);
descriptor_count++;
descriptor_count += inline_info->maxInlineUniformBlockBindings;
bo_size += pCreateInfo->pPoolSizes[i].descriptorCount;
} else {
descriptor_count += pCreateInfo->pPoolSizes[i].descriptorCount;