From 49d2cee930379adba943bae048249a1c4bc6ddfa Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Fri, 2 Mar 2018 16:35:28 +0100 Subject: [PATCH] [dxvk] Fix Nvidia driver version number --- src/dxvk/dxvk_adapter.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/dxvk/dxvk_adapter.cpp b/src/dxvk/dxvk_adapter.cpp index fbee13f0..2822721e 100644 --- a/src/dxvk/dxvk_adapter.cpp +++ b/src/dxvk/dxvk_adapter.cpp @@ -31,6 +31,14 @@ namespace dxvk { VkPhysicalDeviceProperties DxvkAdapter::deviceProperties() const { VkPhysicalDeviceProperties properties; m_vki->vkGetPhysicalDeviceProperties(m_handle, &properties); + + if (DxvkGpuVendor(properties.vendorId) == DxvkGpuVendor::Nvidia) { + properties.driverVersion = VK_MAKE_VERSION( + VK_VERSION_MAJOR(properties.driverVersion), + VK_VERSION_MINOR(properties.driverVersion) >> 2, + VK_VERSION_PATCH(properties.driverVersion)); + } + return properties; }