From f5fecaf96478ded749f570172fb6fc5b6d1087e8 Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Mon, 31 Oct 2022 21:36:15 +0100 Subject: [PATCH] VideoBackends:Vulkan: Fix 0 size descriptor pools [ VUID-VkDescriptorPoolCreateInfo-maxSets-00301 ] Object 0: handle = 0x7f1,b8d,3cd,e70, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xa1,70e,236 | vkCreateDescriptorPool(): pCreateInfo->maxSets is not greater than 0. The Vulkan spec states: maxSets must be greater than 0 --- Source/Core/VideoBackends/Vulkan/CommandBufferManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/Vulkan/CommandBufferManager.h b/Source/Core/VideoBackends/Vulkan/CommandBufferManager.h index 54469a5a63..b253137868 100644 --- a/Source/Core/VideoBackends/Vulkan/CommandBufferManager.h +++ b/Source/Core/VideoBackends/Vulkan/CommandBufferManager.h @@ -161,7 +161,7 @@ private: Common::Flag m_last_present_failed; VkResult m_last_present_result = VK_SUCCESS; bool m_use_threaded_submission = false; - u32 m_descriptor_set_count = 0; + u32 m_descriptor_set_count = DESCRIPTOR_SETS_PER_POOL; }; extern std::unique_ptr g_command_buffer_mgr;