diff options
author | Viktor Szépe <viktor@szepe.net> | 2024-01-07 23:44:55 +0100 |
---|---|---|
committer | Viktor Szépe <viktor@szepe.net> | 2024-01-07 23:44:55 +0100 |
commit | 53085a45e0b2cc995f4056de40116a66f7ae7c08 (patch) | |
tree | 532a7e9b391510ea4e9fb254d669b405de7b289d /src/video_core/vulkan_common/vulkan_memory_allocator.cpp | |
parent | Merge pull request #12560 from GayPotatoEmma/master (diff) | |
download | yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.gz yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.bz2 yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.lz yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.xz yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.tar.zst yuzu-53085a45e0b2cc995f4056de40116a66f7ae7c08.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_memory_allocator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/vulkan_common/vulkan_memory_allocator.cpp b/src/video_core/vulkan_common/vulkan_memory_allocator.cpp index 8dd1667f3..8f4a57e3c 100644 --- a/src/video_core/vulkan_common/vulkan_memory_allocator.cpp +++ b/src/video_core/vulkan_common/vulkan_memory_allocator.cpp @@ -57,7 +57,7 @@ struct Range { return VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT; } -[[nodiscard]] VkMemoryPropertyFlags MemoryUsagePreferedVmaFlags(MemoryUsage usage) { +[[nodiscard]] VkMemoryPropertyFlags MemoryUsagePreferredVmaFlags(MemoryUsage usage) { return usage != MemoryUsage::DeviceLocal ? VK_MEMORY_PROPERTY_HOST_COHERENT_BIT : VkMemoryPropertyFlagBits{}; } @@ -256,7 +256,7 @@ vk::Buffer MemoryAllocator::CreateBuffer(const VkBufferCreateInfo& ci, MemoryUsa .flags = VMA_ALLOCATION_CREATE_WITHIN_BUDGET_BIT | MemoryUsageVmaFlags(usage), .usage = MemoryUsageVma(usage), .requiredFlags = 0, - .preferredFlags = MemoryUsagePreferedVmaFlags(usage), + .preferredFlags = MemoryUsagePreferredVmaFlags(usage), .memoryTypeBits = usage == MemoryUsage::Stream ? 0u : valid_memory_types, .pool = VK_NULL_HANDLE, .pUserData = nullptr, |