From fb6538da3561e016ddbf74b2059c07552bdc3cec Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 12 Jul 2020 00:36:39 +1000 Subject: [PATCH] Vulkan/Context: Allocate SSBO descriptors in global set Fixes vram write buffer creation failing on Mali. --- src/common/vulkan/context.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/vulkan/context.cpp b/src/common/vulkan/context.cpp index 7077ccc7d..3062f5fe5 100644 --- a/src/common/vulkan/context.cpp +++ b/src/common/vulkan/context.cpp @@ -661,7 +661,8 @@ bool Context::CreateCommandBuffers() // TODO: A better way to choose the number of descriptors. VkDescriptorPoolSize pool_sizes[] = {{VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, 1024}, {VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1024}, - {VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER, 16}}; + {VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER, 16}, + {VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 16}}; VkDescriptorPoolCreateInfo pool_create_info = {VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO, nullptr, @@ -718,7 +719,8 @@ bool Context::CreateGlobalDescriptorPool() // TODO: A better way to choose the number of descriptors. VkDescriptorPoolSize pool_sizes[] = {{VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC, 1024}, {VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 1024}, - {VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER, 16}}; + {VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER, 16}, + {VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, 16}}; VkDescriptorPoolCreateInfo pool_create_info = {VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO, nullptr,