1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 22:24:15 +01:00

[dxvk] Fix Nvidia driver version number

This commit is contained in:
Philip Rebohle 2018-03-02 16:35:28 +01:00
parent 349817c52e
commit 49d2cee930
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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;
}