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:
parent
349817c52e
commit
49d2cee930
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user