diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-10-31 22:44:19 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-31 22:44:19 +1000 |
| commit | d3ee0a4535cb34b2d7c27219d43a82cb1094e7f6 (patch) | |
| tree | 250b076f43fd00923044ad85ba0cb580ecb1bc76 /Source/Core/VideoBackends/Vulkan/BoundingBox.cpp | |
| parent | fd4bf5f0a2b5041f5607c4de48bc378a1c02ff73 (diff) | |
| parent | ecdf21a9889a9c6976bcfcb1a6e6b045f5c9f4d2 (diff) | |
Merge pull request #8379 from stenzek/mali
Vulkan: Optimizations for Mali with EFB2RAM on
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/BoundingBox.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/BoundingBox.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/BoundingBox.cpp b/Source/Core/VideoBackends/Vulkan/BoundingBox.cpp index 15c9403228..a1deeafd59 100644 --- a/Source/Core/VideoBackends/Vulkan/BoundingBox.cpp +++ b/Source/Core/VideoBackends/Vulkan/BoundingBox.cpp @@ -172,8 +172,10 @@ bool BoundingBox::CreateGPUBuffer() VkMemoryRequirements memory_requirements; vkGetBufferMemoryRequirements(g_vulkan_context->GetDevice(), buffer, &memory_requirements); - uint32_t memory_type_index = g_vulkan_context->GetMemoryType(memory_requirements.memoryTypeBits, - VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); + uint32_t memory_type_index = g_vulkan_context + ->GetMemoryType(memory_requirements.memoryTypeBits, + VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, false) + .value_or(0); VkMemoryAllocateInfo memory_allocate_info = { VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, // VkStructureType sType nullptr, // const void* pNext |
