mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
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:
parent
d5884a716f
commit
7b91b39ba5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue