Skip to content

Commit e59c6c3

Browse files
committed
vk: Force VMA to comply with Vulkan 1.0
1 parent c27d7db commit e59c6c3

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

rpcs3/Emu/RSX/VK/VKMemAlloc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#define VMA_IMPLEMENTATION
2+
#define VMA_VULKAN_VERSION 1000000
23

34
#include "util/atomic.hpp"
45
#include "Utilities/mutex.h"

rpcs3/Emu/RSX/VK/vkutils/memory.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ namespace vk
167167
allocatorInfo.physicalDevice = pdev;
168168
allocatorInfo.device = dev;
169169
allocatorInfo.instance = inst;
170+
allocatorInfo.vulkanApiVersion = VK_API_VERSION_1_0;
170171

171172
std::vector<VkDeviceSize> heap_limits;
172173
const auto vram_allocation_limit = g_cfg.video.vk.vram_allocation_limit * 0x100000ull;

rpcs3/Emu/RSX/VK/vkutils/memory.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#pragma clang diagnostic push
99
#pragma clang diagnostic ignored "-Wnullability-completeness"
1010
#endif
11+
#define VMA_VULKAN_VERSION 1000000
1112
#include "3rdparty/GPUOpen/VulkanMemoryAllocator/include/vk_mem_alloc.h"
1213
#ifdef __clang__
1314
#pragma clang diagnostic pop

0 commit comments

Comments
 (0)