From 2cb2f8694e4695a8fa28ca9501f1f9a12477b1b6 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Fri, 17 May 2024 20:39:18 +0200 Subject: [PATCH] [dxvk] Use VK_MAKE_API_VERSION instead of VK_MAKE_VERSION. The old macro is deprecated. --- src/dxvk/dxvk_device_filter.cpp | 6 +++--- src/dxvk/dxvk_instance.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dxvk/dxvk_device_filter.cpp b/src/dxvk/dxvk_device_filter.cpp index 23d18248..a7546d4b 100644 --- a/src/dxvk/dxvk_device_filter.cpp +++ b/src/dxvk/dxvk_device_filter.cpp @@ -17,10 +17,10 @@ namespace dxvk { bool DxvkDeviceFilter::testAdapter(const VkPhysicalDeviceProperties& properties) const { - if (properties.apiVersion < VK_MAKE_VERSION(1, 3, 0)) { + if (properties.apiVersion < VK_MAKE_API_VERSION(0, 1, 3, 0)) { Logger::warn(str::format("Skipping Vulkan ", - VK_VERSION_MAJOR(properties.apiVersion), ".", - VK_VERSION_MINOR(properties.apiVersion), " adapter: ", + VK_API_VERSION_MAJOR(properties.apiVersion), ".", + VK_API_VERSION_MINOR(properties.apiVersion), " adapter: ", properties.deviceName)); return false; } diff --git a/src/dxvk/dxvk_instance.cpp b/src/dxvk/dxvk_instance.cpp index 76ba78c5..d23a3561 100644 --- a/src/dxvk/dxvk_instance.cpp +++ b/src/dxvk/dxvk_instance.cpp @@ -182,8 +182,8 @@ namespace dxvk { appInfo.pApplicationName = appName.c_str(); appInfo.applicationVersion = flags.raw(); appInfo.pEngineName = "DXVK"; - appInfo.engineVersion = VK_MAKE_VERSION(2, 3, 2); - appInfo.apiVersion = VK_MAKE_VERSION(1, 3, 0); + appInfo.engineVersion = VK_MAKE_API_VERSION(0, 2, 3, 2); + appInfo.apiVersion = VK_MAKE_API_VERSION(0, 1, 3, 0); VkInstanceCreateInfo info = { VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO }; info.pApplicationInfo = &appInfo;