From 61bd62c327d40cb97447242e6baeb4a9a05373ec Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 22 May 2024 13:17:53 +0200 Subject: [PATCH] [dxvk] Allow descriptor pool overallocation if supported --- src/dxvk/dxvk_descriptor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dxvk/dxvk_descriptor.cpp b/src/dxvk/dxvk_descriptor.cpp index 7c2a72f5..3e36aed9 100644 --- a/src/dxvk/dxvk_descriptor.cpp +++ b/src/dxvk/dxvk_descriptor.cpp @@ -306,7 +306,12 @@ namespace dxvk { info.maxSets = m_maxSets; info.poolSizeCount = pools.size(); info.pPoolSizes = pools.data(); - + + if (m_device->features().nvDescriptorPoolOverallocation.descriptorPoolOverallocation) { + info.flags |= VK_DESCRIPTOR_POOL_CREATE_ALLOW_OVERALLOCATION_POOLS_BIT_NV + | VK_DESCRIPTOR_POOL_CREATE_ALLOW_OVERALLOCATION_SETS_BIT_NV; + } + VkDescriptorPool pool = VK_NULL_HANDLE; if (vk->vkCreateDescriptorPool(vk->device(), &info, nullptr, &pool) != VK_SUCCESS)