mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 19:24:12 +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 DxvkAdapter::deviceProperties() const {
|
||||||
VkPhysicalDeviceProperties properties;
|
VkPhysicalDeviceProperties properties;
|
||||||
m_vki->vkGetPhysicalDeviceProperties(m_handle, &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;
|
return properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user