mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 04:08:10 +02:00
radv: use radv_get_sampled_image_desc_size instead of open coding it
Cc: mesa-stable Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41680>
This commit is contained in:
parent
5bbde670dd
commit
1b8465a38f
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ radv_create_descriptor_pool(struct radv_device *device, const VkDescriptorPoolCr
|
|||
num_16byte_descriptors += pCreateInfo->pPoolSizes[i].descriptorCount;
|
||||
}
|
||||
} else {
|
||||
const uint32_t max_desc_size = pdev->use_fmask ? 64 : 32;
|
||||
const uint32_t max_desc_size = radv_get_sampled_image_desc_size(pdev);
|
||||
bo_size += max_desc_size * pCreateInfo->pPoolSizes[i].descriptorCount;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue