vk: Force VMA to comply with Vulkan 1.0

This commit is contained in:
kd-11 2025-05-21 02:12:28 +03:00 committed by kd-11
parent c27d7db0a7
commit e59c6c3c18
3 changed files with 3 additions and 0 deletions

View file

@ -1,4 +1,5 @@
#define VMA_IMPLEMENTATION
#define VMA_VULKAN_VERSION 1000000
#include "util/atomic.hpp"
#include "Utilities/mutex.h"

View file

@ -167,6 +167,7 @@ namespace vk
allocatorInfo.physicalDevice = pdev;
allocatorInfo.device = dev;
allocatorInfo.instance = inst;
allocatorInfo.vulkanApiVersion = VK_API_VERSION_1_0;
std::vector<VkDeviceSize> heap_limits;
const auto vram_allocation_limit = g_cfg.video.vk.vram_allocation_limit * 0x100000ull;

View file

@ -8,6 +8,7 @@
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnullability-completeness"
#endif
#define VMA_VULKAN_VERSION 1000000
#include "3rdparty/GPUOpen/VulkanMemoryAllocator/include/vk_mem_alloc.h"
#ifdef __clang__
#pragma clang diagnostic pop