mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 14:18:07 +02:00
radv: fix descriptor pool allocation size
The size has to be multiplied by the number of sets. This gets rid of the OUT_OF_POOL_KHR error and fixes a crash with the Tangrams demo. CC: 18.1 18.2 <mesa-stable@lists.freedesktop.org> Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
67094e11e9
commit
90819abb56
1 changed files with 2 additions and 1 deletions
|
|
@ -569,9 +569,10 @@ VkResult radv_CreateDescriptorPool(
|
|||
}
|
||||
|
||||
if (!(pCreateInfo->flags & VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT)) {
|
||||
uint64_t host_size = pCreateInfo->maxSets * sizeof(struct radv_descriptor_set);
|
||||
uint64_t host_size = sizeof(struct radv_descriptor_set);
|
||||
host_size += sizeof(struct radeon_winsys_bo*) * bo_count;
|
||||
host_size += sizeof(struct radv_descriptor_range) * range_count;
|
||||
host_size *= pCreateInfo->maxSets;
|
||||
size += host_size;
|
||||
} else {
|
||||
size += sizeof(struct radv_descriptor_pool_entry) * pCreateInfo->maxSets;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue