mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
turnip: trim down host size of tu_descriptor_pool
There is no tu_bo array in tu_descriptor_set since bea6290ca0 ("turnip:
device global bo list").
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18152>
This commit is contained in:
parent
9fd66f0cae
commit
2da46db9b2
1 changed files with 1 additions and 5 deletions
|
|
@ -647,7 +647,7 @@ tu_CreateDescriptorPool(VkDevice _device,
|
|||
TU_FROM_HANDLE(tu_device, device, _device);
|
||||
struct tu_descriptor_pool *pool;
|
||||
uint64_t size = sizeof(struct tu_descriptor_pool);
|
||||
uint64_t bo_size = 0, bo_count = 0, dynamic_size = 0;
|
||||
uint64_t bo_size = 0, dynamic_size = 0;
|
||||
VkResult ret;
|
||||
|
||||
const VkMutableDescriptorTypeCreateInfoVALVE *mutable_info =
|
||||
|
|
@ -657,9 +657,6 @@ tu_CreateDescriptorPool(VkDevice _device,
|
|||
for (unsigned i = 0; i < pCreateInfo->poolSizeCount; ++i) {
|
||||
const VkDescriptorPoolSize *pool_size = &pCreateInfo->pPoolSizes[i];
|
||||
|
||||
if (pool_size->type != VK_DESCRIPTOR_TYPE_SAMPLER)
|
||||
bo_count += pool_size->descriptorCount;
|
||||
|
||||
switch (pool_size->type) {
|
||||
case VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC:
|
||||
case VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC:
|
||||
|
|
@ -688,7 +685,6 @@ tu_CreateDescriptorPool(VkDevice _device,
|
|||
|
||||
if (!(pCreateInfo->flags & VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT)) {
|
||||
uint64_t host_size = pCreateInfo->maxSets * sizeof(struct tu_descriptor_set);
|
||||
host_size += sizeof(struct tu_bo*) * bo_count;
|
||||
host_size += dynamic_size;
|
||||
size += host_size;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue